How to exit script debugger?
andya_b341b7c5f5
Posts: 694
Dumb question probably, but how the heck do you get out of the script debugger? I just want to get back to the script IDE as it was before I started the debugger, but nothing I have found will do that. Tried the 'Interrupt script', tried running to the end of the script, tried sacrificing a virtual goat inside a circle of point lights - nothing.
Comments
It usually kicks me back when the script is finishing running!
https://www.daz3d.com/forums/discussion/comment/4911536/#Comment_4911536
Thanks. Not sure what you mean there by switching to another activity. Typing '.finish' seems to do the trick, but is not ideal if you know that this will execute some script code you do not want to execute, for example because you know it will crash DS, or save an asset in a way you now don't want it saved. Typing '.return' is a guaranteed hard crash for me.
Activities are the tabs across the top of DS, if you have them enabled, that change the layout.
Typing ".finish" continues script execution to the end of the program. If you know a bug exists past a breakpoint, and the bug will crash DS, there is no way to kill the process. You're going over Niagra Falls whether you want to or not.
Also, switching Activities is not an option if your code is within a dialog window. All DS menu items are disabled, since you're dealing with modal dialogs.
What scripting developers need is a menu option added to the DS Scripting IDE Debug menu, such as 'Terminate Script'. Surely your engineers can implement this is in an hour or two.\
Use .interrupt to stop the script.