Debug control?

BlitzPlus Forums/BlitzPlus Beginners Area/Debug control?

Roe(Posted 2005) [#1]
Hello again,

Is it possible to flag certain lines in the code so that when that particular line of code is processed the debug stops the program? I used to just click on the side of the code window in Director and it would brink up a little red spot to indicate you wanted to stop the code at that particular point.

This must be possible in Blitzplus surely? I'm missing something here I know :)

Cheers


Snarty(Posted 2005) [#2]
Use: Stop

In Debug mode.


WolRon(Posted 2005) [#3]
Make sure to remove (or comment out) the Stop commands when you are not in Debug mode though, or else your program will freeze...


Hotcakes(Posted 2005) [#4]
I thought that behaviour was changed at one point to just ignore Stop if Debug wasn't enabled?


WolRon(Posted 2005) [#5]
Well this code:
Print "hello"
Stop
Print "goodbye"
WaitKey()
End

freezes on my computer...


Hotcakes(Posted 2005) [#6]
Oh. Umm... fair enough. =]

I always had a DEBUG constant in my code, which reflected whether the debugger enabled, and covered most things like this in If DEBUG=1 statements anyway...