Tron/troff – Remote Processing CAMBASIC User Manual

Page 168

Advertising
background image

Comm ands - 135

TRON/TROFF

Statement

SYNTAX:

TRON

T R O F F

PURPOSE:

To trace progr am execution.

REMARK S:

Execute TRON to turn on the trace and TROF F to turn the trace off. It m ay be executed in the
immediate mode to trace a whole pr ogram or be placed w ithin a program to trace only a section.

WARNING:

TRON and TR OFF must be the only command or last command on a line.

TRON should be used cautiously in a multitasking or time critical program. The reason is the print
buffer easily fills up, halting execution until the buffer is low enough to execute the next line. The
program will slow down tre mendously and not ope rate on a rea l time basis.

RELATED:

none

EXAMPLE:

10 TRON
20 FOR X = 0 TO 3
30 A = X
40 NEXT
50 TROFF

RUN

.20..30. 0
.40..30. 1
.40..30. 2
.40..30. 3
.40..50.

ERROR:

none

Advertising