Start debugger
BlitzMax Forums/BlitzMax Programming/Start debugger
| ||
I think I remember in Blitz3d you could click the debug button at any time to stop the program and start the debugger. Can you do this in Max? My program is getting stuck in an infinate loop somewhere and I can't track it down. |
| ||
Nope. Easiest way is to spit info into the debugLog at key points so you know where program execution has got to. |
| ||
You can check for a keyhit anywhere in code put a debugstop there. |
| ||
It looks that way, GfK. :( Thanks for the suggestion GW but the trouble is I don't know where abouts it is getting stuck. My program is freezing without error during complex scenes with tons of stuff going on, so there is no one place I can isolate and I haven't yet narrowed down the cause very far. |
| ||
My approach would be to debuglog on entry and leave of every funtion / method. This gets you the Area to search. THen debuglog in front of every loop. Last emitted debuglog will be the loop which gets stuck. |