[Newbies] User Interrupt window

obrienj obrienj at protonmail.com
Fri Dec 22 05:31:55 UTC 2017


Thank you for your reply. I understand the purpose and use of the debugger. I am working on a program that compiles user input that could result in an infinite loop if the user isn't careful. I'd like to avoid the debugger's notifier and simply halt the compiler and let the user edit the input and try again but haven't found a way to do that.


> -------- Original Message --------
> Subject: Re: [Newbies] User Interrupt window
> Local Time: December 21, 2017 6:58 PM
> UTC Time: December 22, 2017 2:58 AM
> From: lewis at mail.msen.com
> To: obrienj <obrienj at protonmail.com>, A friendly place to get answers to even the most basic questions about Squeak. <beginners at lists.squeakfoundation.org>
> On Thu, Dec 21, 2017 at 09:00:49PM -0500, obrienj wrote:
>> Tried it but nothing changed.
>> Looking at Debugger's methods, it appears that typing the interrupt key opens a notifier (the User Interrupt window), which gives the user the option to abandon the interrupted process. Is there a way to add a method to a program so that typing the interrupt key simply abandons the running process without the notifier opening?
> Sure, there is probably a way to do that. But the most likely use case for
> interrupting the system with the interrupt key is that something is going
> wrong. You are trying to interrupt the process in which something bad is
> happening, and you want to stop the bad thing from happening in such a way
> that you can correct the problem, then proceed from that point.
> For this kind of situation, the ideal solution is to open a debugger on
> the failing process so that you can interact with it directly, correct the
> problem, and then resume the interrupted process after you have addressed
> the problem.
> That is the reason for providing the notifier that allows you to enter
> a debugger, or to do whatever else you may think may be necessary.
> Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/beginners/attachments/20171222/d7a2e017/attachment-0001.html>

More information about the Beginners mailing list