Start debugger

BlitzMax Forums/BlitzMax Programming/Start debugger

Czar Flavius(Posted 2011) [#1]
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.


GfK(Posted 2011) [#2]
Nope.

Easiest way is to spit info into the debugLog at key points so you know where program execution has got to.


GW(Posted 2011) [#3]
You can check for a keyhit anywhere in code put a debugstop there.


Czar Flavius(Posted 2011) [#4]
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.


BladeRunner(Posted 2011) [#5]
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.