[Closed] Step through/out debugging in Maxscript
Does anyone know how to do this on maxscript? You know… the thing that VS can do for easier debugging. I kinda annoyed that I need to add a lot of print() to see if the codes work correctly.
You can take a look at the ‘assert’ function:
http://help.autodesk.com/view/3DSMAX/2016/ENU/?guid=__files_GUID_821E791F_6D80_48C7_8A65_65BE73C551C6_htm
Perhaps it can help you in some cases.
There’s a break() function, that stops the code and invokes the debugger at that point. From there on use the ? command in the debugger to get the list of available commands. However in my experience, editing a watch list while in a break tends to crash max.
Worth mentioning is also the stack() function – it simply drops the stack info to listener without stopping the code. Sometimes a good replacement for prints and asserts on smaller tools, does tend to cause lots of noise on larger tools, though.
Yeah… I already also tried those things and it’s often crash except the stack(). Can’t really believe that max aren’t improving their debugger.
Thanks anyway…