Detecting open debuggers

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Detecting open debuggers

NorbertHartl
How to detect debugger windows? In pharo 2.0 I had this

SystemWindow allSubInstances select: [:each| each model isKindOf: Debugger ]

What would be the 3.0 equivalent?

thanks,

Norbert


Reply | Threaded
Open this post in threaded view
|

Re: Detecting open debuggers

Andrei Chis
MorphicWindowAdapter allInstances select: [:w | 
(w model isKindOf: WindowModel) and: [ 
w model model isKindOf: SpecDebugger ]  ]

Based on "SpecDebugger class>>closeAllDebuggers".


Cheers,
Andrei


On Mon, Feb 17, 2014 at 9:16 PM, Norbert Hartl <[hidden email]> wrote:
How to detect debugger windows? In pharo 2.0 I had this

SystemWindow allSubInstances select: [:each| each model isKindOf: Debugger ]

What would be the 3.0 equivalent?

thanks,

Norbert