Using Debug

Blitz3D Forums/Blitz3D Beginners Area/Using Debug

terry(Posted 2003) [#1]
I can't seem to find basic information about using the debugger in my B+ documentation - has anyone written a note on the subject?

Simple info like - the meaning of the iconbar icons; How to set a breakpoint; how to inspect arrays - they don't appear in the globals window

Terry from Tooting


keyboard(Posted 2003) [#2]
The Debug Icons are Pause Continue StepOver StepInto StepOut and Stop

If Debug is enabled, clicking Pause stops execution at that point and the other icons become active...

Pause
Pauses the currently running program.

Continue
Resumes program execution after pause.

StepOver
Executes the next program statement and stops.
If the next statement is a function call, the entire function is executed before the program is stopped.

StepInto
Executes the next program statement and stops. If the next statement is a function call, then program execution stops at the first statement of the function.

StepOut
When used inside a function, this will cause all statements to be executed until the function returns to it's caller. The program will then stop at the statement following the function call.

End
Terminates program execution and returns you to the editor.
*******************************************

I bet you pretty much figured all that yourself, and there may be command line switches to do more sophisticated debugging...

Can anyone help with something on command line and debug?


soja(Posted 2003) [#3]
How to set a breakpoint: use the Stop command

Are there any tricks out there for debugging arrays (both variants -- () and [])?


terry(Posted 2003) [#4]
Thanks for the info keyboard and soja

about

...debugging arrays (both variants -- () and [])?

Now you've lost me - what's a [] array?
--
terry from tooting


soja(Posted 2003) [#5]
Now you've lost me - what's a [] array?

See this thread:
Forums/Beginners Area/blitz array


terry(Posted 2003) [#6]
Aaaaaah! BlitzArrays!

Bisto!!!!

Thanks for that

terry from tooting