Quote:
Originally posted by Jon Lawton
What kind of debugging facilities are available for use with the code on the robot controller? I saw some kind of "debugger" integrated with the Stamp Editor software we are supplied with, but its use was not inuitive to say the least. Any pointers to documentation or software I'm missing?
|
I think you're refering to the debug terminal of the StampW editor. A debug terminal window opens whenever you download a program (or at least whenever that program contains DEBUG commands.) You can use the DEBUG command in your program to display data as your program runs -- just like using printf to debug a C program.
The new StampW editor version 1.2 (available at
Parallax Inc.) has built in context sensitive help which describes the DEBUG command fairly well. It looks like this online help is pretty much the same as is in the BASIC Stamp Manual v2.0 (also available for download from the Parallax site.) Note: the online help only covers Chapter 5: BASIC STAMP COMMAND REFERENCE of the manual. It doesn't include Chapter 4: BASIC STAMP ARCHITECTURE which includes the following topics:
- Memory Organization
- Defining Variables
- Defining Arrays
- Aliases and Modifiers
- Constants and Expressions
- Number Representations
- Order of Operations
- Math and Operators
which are AT LEAST as important as the commands (especially since many of the commands are not applicable to our little "CPU in a bubble" [see Joe Johnson's white paper
Practical PBASIC Programming])