Debug

displays the contents of internal registers as an aid to understanding, correcting, or modifying programs.

Debug can be a great help in figuring out what's happening inside a running PBASIC program. You can display the value of any bit, byte, or word of memory in a window on the PC screen. Of course, Debug depends on the Stamp programming cable and firmware routines to communicate with the PC. Not every PIC application will have these luxuries. Here are some suggestions on debugging assembly-language programs with a minimum of overhead:

See also: