View Single Post
  #6   Spotlight this post!  
Unread 07-11-2001, 20:56
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Debugging BASIC Stamp Code

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])
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me

Last edited by Greg Ross : 07-11-2001 at 21:24.