Q(uick)BASIC Statement: TROFF

Quick View

TRON and TROFF

Debugging statemens that trace the execution of program statements

Worth knowing

Useful and cross-version information about the programming environments of QBasic and QuickBasic.

Syntax
  • TRON
  • TROFF
Description/Parameter(s)
  • TRON and TROFF enable and disable tracing of program statements.

  • QBasic's debugging features make these statements unnecessary.
Syntax
  • TRON
  • TROFF
Description/Parameter(s)

In the QuickBASIC environment, executing a TRON statement has the same effect as selecting Trace On from the Debug menu--each statement is highlighted on the screen as it executes.

The TROFF statement turns off the program trace.

The TRON and TROFF statements only display line numbers when compiled with the Debug option or the /D option on the BC command line.

Note: The debugging features of the QuickBASIC environment make these statements unnecessary. See the Debugging Keys for more information.
Syntax
  • TRON
  • TROFF
Description/Parameter(s)
  • The debugging features of the QBX environment make these statements unnecessary. See the Debugging Keys topic for more information.

Usage Notes

  • In the QBX environment, executing a TRON statement has the same effect as selecting Trace On from the Debug menu--each statement is highlighted on the screen as it executes.
  • The TROFF statement turns off the program trace.
  • The TRON and TROFF statements only display line numbers when compiled with the Debug option or the /D option on the BC command line.