Hi, I was trying to write a script to parse a file for a line with a “Start flag” and seem to have generated an infinite loop. Is there anyway to halt the script with existing Blender? It’s kinda a pain when you’re debugging a new script to have to stop blender because of a bug in your script.
E E
Ctrl+C in the blender terminal
In the Terminal… Sigh… That makes since, I should have thought of that!
Thanks
E E
There really needs to be an escape key binding by default that stops script execution or even better a key event callback that isn’t ignored when a script is running. It needs to be in a separate thread or something.
The OS X version doesn’t have a terminal window so stopping scripts is impossible without force quitting the program.
Easy way to check. Open the text panel, make a new file and type:
while True: pass
Then run it with alt-p. It will hang up and you can’t do anything. :eek:
The OS X version doesn’t have a terminal window so stopping scripts is impossible without force quitting the program
You can run it from the command line though, so you have a terminal like you do in the windows verisons.
yes, some wat to check for ESC is needed.
Yeah that’s true, you just have to zoom it out of full screen.