First Debug not working

pmolsen

Senior Member
Why does this program produce no output in the debug window? In fact I can never seem to get the first debug statement in a program to work. (Picaxe 18m2+)

b0 = 1
debug
 

MartinM57

Moderator
Two lines worth putting at the start of every program:

Code:
#picaxe xxx   ;specify PICAXE type
pause yyy     ;delay to let everything stabilise - 250mS or so
 

Technical

Technical Support
Staff member
As others have indicated, the debug Window at the computer side is simply not open by the time the PICAXe does the first debug, hence it gets missed by the computer. A simple pause will resolve that.
 

westaust55

Moderator
The need for a pause at the start is also not limited to use of the Debug command.

If you use SERTXD to send data to the programming Editor Terminal Window as it takes some time for the terminal window to establish itself. This will result in "lost" information if the Terminal Window is opened just as the program download completes.
 
Top