DataBasic Reference > Related TCL Commands > DEBUG

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

DEBUG command (DataBasic) (m618704+debug.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

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 will accept 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

RealityV15.1 (MoTW) Revision 7Comment on this topic