[squeak-dev] stepping over non local return in a protected block

Jaromir Matas m at jaromir.net
Sat Apr 17 08:57:54 UTC 2021


Hi Nicolas,


Nicolas Cellier wrote
> When debugging things like this:
> 
>     [^2] ensure: [Transcript cr; show: 'done'].
> 
> if we step into the protected block [^2], then step over ^2, we
> incorrectly get a BlockCannotReturn.

Hmm, that's the bug that plagued #terminate and caused unwind errors... I
didn't fully realize then; I simply avoided it by eliminating the simulation
code from #terminate :) This behavior happens when the VM calls
#aboutToReturn:through: and the Debugger executes #stepOver it (or over
#return:through: or #resume:through:) - sorry if I'm stating the obvious;
unfortunately I have negligible knowledge of the Debugger. I'm really
looking forward to seeing a solution!
Thanks, 
best,



-----
^[^ Jaromir
--
Sent from: http://forum.world.st/Squeak-Dev-f45488.html


More information about the Squeak-dev mailing list