11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DEBUG<br />

Syntax<br />

DEBUG<br />

Description<br />

The <strong>UniBasic</strong> DEBUG command stops program execution, turns control over to the<br />

interactive <strong>UniBasic</strong> debugger, and then displays the debugger prompt (!). Pressing<br />

the interrupt key also gives control to the debugger. For information about the<br />

<strong>UniBasic</strong> debugger, see Using the <strong>UniBasic</strong> Debugger.<br />

To use the DEBUG command to display the contents of variables, you must compile<br />

the program with the D option.<br />

Note: The setting of UDT.OPTIONS 14 determines where to return control after<br />

exiting a <strong>UniBasic</strong> program when you are using the <strong>UniBasic</strong> debugger and enter<br />

ABORT or END. For information about UDT.OPTIONS, see the UDT.OPTIONS<br />

<strong>Commands</strong> <strong>Reference</strong>.<br />

When you enter the debugger, a message similar to the following displays, and the<br />

cursor is placed at the debugger prompt:<br />

DEBUGGER called before line 1 of program BP/TEST<br />

!<br />

Related <strong>Commands</strong><br />

<strong>UniBasic</strong><br />

ABORT<br />

UniData<br />

BASIC, DEBUG.FLAG, DEBUGLINE.ATT, DEBUGLINE.DET, ON.ABORT,<br />

RUN, SETDEBUGLINE, UNSETDEBUGLINE – For information, see the UniData<br />

<strong>Commands</strong> <strong>Reference</strong>.<br />

DEBUG 1-196

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!