feenkcom / gtoolkit

Glamorous Toolkit is the Moldable Development environment. It empowers you to make systems explainable through experiences tailored for each problem.
https://gtoolkit.com
MIT License
1.12k stars 49 forks source link

Debugger lacks option to return #3891

Open Rinzwind opened 4 months ago

Rinzwind commented 4 months ago

In Pharo 11 build 726, when inspecting #(1.5 nil 2.5) collect: [ :n | n rounded ], the MessageNotUnderstood can be returned from using ‘Return’ in the debugger (see screenshot below) giving it for example nil as the return expression so that the inspected result is #(2 nil 3). The Glamorous Toolkit debugger in v1.0.977 seems to lack a similar option (unless I’m just overlooking it).

girba commented 4 months ago

Thanks. Would you like to try to add a custom action for this specific to DNU in the debugger?

Rinzwind commented 4 months ago

I’m not sure it should be a custom action, it would seem better to have the option to return from any context. Using the same example, for the following screenshot, I’ve selected the context below the top one, pressed ‘Return’ and am giving { aBlock value: self first. aBlock value: self third } as the expression so that the inspected result will be #(2 3).