Debug problems

BlitzMax Forums/BlitzMax Programming/Debug problems

DannyD(Posted 2005) [#1]
Hi,
I can't figure out how to use the debug menu. The docs say the following:

"Step In debug mode, step over next program statement.
Step In In debug mode, step into next program statement.
Step Out In debug mode, step out of current block or function.
Halt Stop current build or program run."

I have tried selecting:
build options -> debug build only
build options -> debug & quick & Build GUI app

but pressing F9(step), F10(stepin) doesn't allow me to step through the application. The step ,step in and step out icons on the toolbar are always not active.I've tried on both 1.14 on Mac Os and 1.14 on Windows XP.

Any suggestions ?


Brucey(Posted 2005) [#2]
In your application, you need to add a line
DebugStop

When the application reaches this line, it will stop and wait for you to step through it.


Dreamora(Posted 2005) [#3]
You have to put a DebugStop in to activate the debug controls after this point.


DannyD(Posted 2005) [#4]
Thanks guys. I didn't see this in the documentation, perhaps I missed it or it needs to be added. What about watchine variables , is this possible ?


Brucey(Posted 2005) [#5]
When your application has stopped for debugging, look at the "navigator" panel in the IDE, you should see a Debug tab, in which are listed the variables your application can see from its currently stopped position.