Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop execution without resetting the interpreter #618

Closed
GoogleCodeExporter opened this issue Aug 24, 2015 · 2 comments
Closed

Stop execution without resetting the interpreter #618

GoogleCodeExporter opened this issue Aug 24, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

In principle one can use the reinitialize command (Run, Python Engine, 
Reinitialize) to interrupt the interpreter but this not only stops execution 
but resets the interpreter entirely. That means it forgets everything including 
the current directory, code loaded, variable asignments and so on.

For testing purposes it is useful to build up an environment in the 
interpreter and test individual functions. If for some reason the 
interpreter hangs (gets in an infinite loop, test data is too big to process 
and one gets bored waiting...) it is a nuisance to lose context when resetting 
the interpreter. 

Original issue reported on code.google.com by patric...@gmx.de on 6 Mar 2012 at 7:39

@GoogleCodeExporter
Copy link
Author

I managed to get a way to raise a Keyboard interrupt to at the remote 
interpreter utilizing Windows calls without incurring overheads.

So Reinitializing the Remote engine is no longer necessary for stopping an 
infinitely looping script.  You just need to press the Abort button.

Original comment by pyscripter on 10 Mar 2012 at 12:11

  • Changed state: Fixed

@wkitlasten
Copy link

Where/what is this "Abort" button of which you speak? When pyscripter hangs and I click anywhere on the window, it greys out and I can't do anything other than kill the whole thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants