Checking for the Debugger Window

49 views
Skip to first unread message

Totally Objects

unread,
Mar 11, 2012, 9:20:07 AM3/11/12
to va-sma...@googlegroups.com
We have a web site that is currently under development but is running on an unattended server. We are using WebConnect to run the site.

As it is under development, we are running the development image.

We would like to send ourselves an e-mail if the Debugger Window opens.

I know that I can get a list of windows using EtWindow allWindows but how do I determine the Debugger window from the list.

This is probably a trvial question but it is giving me a bit of grief.

David
Totally Objects

Donald MacQueen

unread,
Mar 11, 2012, 5:17:34 PM3/11/12
to va-sma...@googlegroups.com
Hi David,

Long time, no see.

If I inspect 3/0, I get a debugger. If I then inspect EtWindow allWindows, I get an orderedCollection with one of its entries being an StsDebugger.

How's that? Or have I completely misunderstood?

Donald [|]

David Pennington

unread,
Mar 11, 2012, 5:30:28 PM3/11/12
to va-sma...@googlegroups.com
Hi Donald

If I iterate over the windows - what essage do I send them all to find out that one is the debugger?

Thanks for responding
David Pennington
Totally Objects
The Smalltalk Specialists



--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/va-smalltalk/-/6O1eCFI3JlsJ.
To post to this group, send email to va-sma...@googlegroups.com.
To unsubscribe from this group, send email to va-smalltalk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/va-smalltalk?hl=en.

Donald MacQueen

unread,
Mar 11, 2012, 5:36:58 PM3/11/12
to va-sma...@googlegroups.com
How about 'self select: [:each | each class name = #StsDebugger]'?

Donald

On Sunday, March 11, 2012 5:30:28 PM UTC-4, Totally Objects wrote:
Hi Donald

If I iterate over the windows - what essage do I send them all to find out that one is the debugger?

Thanks for responding
David Pennington
Totally Objects
The Smalltalk Specialists



On 11 Mar 2012, at 21:17, Donald MacQueen wrote:

Hi David,

Long time, no see.

If I inspect 3/0, I get a debugger. If I then inspect EtWindow allWindows, I get an orderedCollection with one of its entries being an StsDebugger.

How's that? Or have I completely misunderstood?

Donald [|]

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/va-smalltalk/-/6O1eCFI3JlsJ.
To post to this group, send email to va-sma...@googlegroups.com.
To unsubscribe from this group, send email to va-smalltalk+unsubscribe@googlegroups.com.

David Pennington

unread,
Mar 11, 2012, 6:55:57 PM3/11/12
to va-sma...@googlegroups.com
Why is it that the blindingly obvious is only blindingly obvious when someone else tells you!

Thanks
David

Sent from my iPad
To view this discussion on the web visit https://groups.google.com/d/msg/va-smalltalk/-/hEyvgDEhHwMJ.

To post to this group, send email to va-sma...@googlegroups.com.
To unsubscribe from this group, send email to va-smalltalk...@googlegroups.com.

Donald

unread,
Mar 11, 2012, 7:00:55 PM3/11/12
to va-sma...@googlegroups.com, David Pennington
On 3/11/2012 6:55 PM, David Pennington wrote:
Why is it that the blindingly obvious is only blindingly obvious when someone else tells you!

That's the great humbling thing about dealing with computers -- no matter how much experience you have, there are still regular opportunities to get mentally wrapped around the axle.  Happens to me at least once a month.

Glad I could help.

Thanks
David


On 11 Mar 2012, at 21:36, Donald MacQueen <dm...@instantiations.com> wrote:

How about 'self select: [:each | each class name = #StsDebugger]'?

Donald

On Sunday, March 11, 2012 5:30:28 PM UTC-4, Totally Objects wrote:
Hi Donald

If I iterate over the windows - what essage do I send them all to find out that one is the debugger?

Thanks for responding
David Pennington
Totally Objects
The Smalltalk Specialists



-- 
Donald [|]

A bad day in [] is better than a good day in {}

Richard Sargent

unread,
Mar 13, 2012, 9:44:37 AM3/13/12
to va-sma...@googlegroups.com
Perhaps because it is not obvious and obviously not a good practice.
If you were to install the RjsDebugger (which doesn't actually exist), your implementation breaks horribly. Your original question was much more appropriate: what behaviour tells me it is a debugger window?

Conversely, do you really want a debugger window at all? Why not replace the debugger with a stack dumper and a mail sender? (If the information you choose to capture would allow you to recreate the problem, you would have all you need.)

David Pennington

unread,
Mar 13, 2012, 10:36:23 AM3/13/12
to va-sma...@googlegroups.com
This is only whilst we are going through the implementation phase. We can check the system using Chicken of the VNC (don't you just love those macintosh program names) but this way we know when to do so, we don't have to keep checking. Once we have cleared the issues, we will drop the facility.

David Pennington
Totally Objects
The Smalltalk Specialists



To view this discussion on the web visit https://groups.google.com/d/msg/va-smalltalk/-/y91ojwdU62YJ.

To post to this group, send email to va-sma...@googlegroups.com.
To unsubscribe from this group, send email to va-smalltalk...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages