[squeak-dev] Should Debugger Restart unwind contexts?

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Mon Oct 25 19:17:24 UTC 2021


Hi all,


just wondering:


doSomething


self startUp.

[self basicDoSomething] ensure: [self tearDown].


DoIt


self doSomething.


Considering debugging the example above and you would just be about to send #basicDoSomething: If you hit the Restart button in this situation in the context of the DoIt method, should the #ensure: context in #doSomething be unwound, i.e., should #tearDown be evaluated? Currently, the unwind is skipped.
Performing the unwind might be considered a confusing side-effect. Not performing the unwind could lead to dangling temporary state in the images, unreleased resources, etc.
<http://www.hpi.de/>

Best,
Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20211025/31efac4c/attachment.html>


More information about the Squeak-dev mailing list