DEBUG statement

Syntax

DEBUG

Description

Use the DEBUG statement to invoke RAID, the interactive BASIC debugger. The DEBUG statement takes no arguments. When this statement is encountered, program execution stops and the double colon ( :: ) prompt appears, waiting for a RAID command. The following table summarizes the RAID commands:

Table 1. RAID Commands
Command Action
line Displays the specified line of the source code.
/[string] Searches the source code for string.
B Set a RAID breakpoint.
C Continue program execution.
D Delete a RAID breakpoint.
G Go to a specified line or address and continue program execution.
H Display statistics for the program.
I Display and execute the next object code instruction.
L Print the next line to be executed.
M Set watchpoints.
Q Quit RAID.
R Run the program.
S Step through the BASIC source code.
T Display the call stack trace.
V Enter verbose mode for the M command.
V* Print the compiler version that generated the object code.
W Display the current window.
X Display the current object code instruction and address.
X* Display local run machine registers and variables.
Z Display the next 10 lines of source code.
$ Turn on instruction counting.
# Turn on program timing.
+ Increment the current line or address.
- Decrement the current line or address.
. Display the last object code instruction executed.
variable/ Print the value of variable.
variable!string Change the value of variable to string.