GemTalk / JadeiteForPharo

IDE for GemStone Smalltalk application development in Pharo using Rowan code management
MIT License
1 stars 0 forks source link

debug-it does not always stop at first breakpoint #132

Open ericwinger opened 1 week ago

ericwinger commented 1 week ago

'Debug it' in a text pane should open a debugger at the beginning of the ad-hoc execution but does not unless there is another breakpoint set in the image. It's almost as if the server needs a breakpoint to exist in a persisted method before it will honor breakpoints in temporary methods.

The method that compiles the temporary method and sets the breakpoint is here. And it sets the breakpointLevel to 1 so the breakpoint will be signalled to Smalltalk which is where jadeite is waiting for it via rsr.

RowanAnsweringService>>basicExec:context:shouldDebug:returningString:

To reproduce.

ericwinger commented 1 week ago

With tracing code, it appears that in the error condition (no debugger opened) the breakpoint does not reach the debug action block.