DEBUG

Runs a program but enters the DataBasic symbolic debugger before executing the first line of the program, and on executing DEBUG statements within the program.

Note

Replaces the D option which was formerly used with the RUN command, and with cataloged programs, to enter debug.

Syntax

DEBUG [file-specifier item-id || cataloged-program-name] {(options}

Syntax elements

file-specifier The file containing the program to be run.

item-id The item containing the source code of the program to be run under debug.

cataloged-program-name
The name of the cataloged program to be run under debug.

Options

The DEBUG command accepts the same options as the RUN command.

Operation

If an executable (platform-specific) item exists in the dictionary of the specified file, DEBUG will execute this item rather than any deliverable (platform-independent) item in the data section. For details of the different types of item generated by the compiler, refer to the description of the BASIC command.

Refer to the Summary of Debugger Commands for details of valid commands executable at the debug prompt (*).

Examples

DEBUG BP TEST
DEBUG TEST