[squeak-dev] Please try out | Fixes for debugger invocation during code simulation

Jaromir Matas m at jaromir.net
Sun Mar 14 21:49:36 UTC 2021


Hi Marcel,

> So, you are wondering about the result of "genuineProcess isTerminated"
> being sent from a simulated process? 

No, I'm talking about a real situation while debugging e.g. the Christoph's
example:
1. open Process Browser
2. open an explorer window on the UI process
3. do-it [self error: 'e1'] ensure: [^2]
4. now the UI process has become the debugged process and a new UI has been
spawned
5. open an explorer window on the new UI process
6. hit Abandon on the debugger window and see what happened on the enclosed
printscreen:

<http://forum.world.st/file/t372955/Active_effective_genuine_2.png> 

- the original UI process became the UI process again but because of the bug
Christoph has reported this original UI process is now still the effective
process and the genuine process is still running and responding true to self
#isTerminated e.g. in the explorer window etc. This causes the genuine
process to disappear from the Process Browser window which I find very
inconvenient and most likely wrong - well, we're no longer debugging yet the
genuine process is not showing which makes it more difficult to realize what
happened.

This is why I ask whether the genuine process shouldn't be considered
something but terminated :) Process Browser filters terminated processes
out.

> From a general perspective, however, only 1 process is running at a time.
> And most of that time, I would argue, it is some process being the genuine
> process, not an effective one. ;-) 

I guess, however with simulation and jumps this may become a bit blurred...
I've got to think about it.

BTW, if you repeat step 3 will get you to the Unwind error and if you hit
Proceed you end up with the two UI processes alternating every worldCycle,
now of course both without the effective variable set and both again visible
in the Process Browser.

The only point I'm making is there are real pathological situations where
you might want to see the genuine process while another process acts as the
active process and considering it terminated is very confusing.

Thanks and best regards,



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


More information about the Squeak-dev mailing list