Futurebasic/Language/Reference/tron

From Wikibooks, open books for an open world
Jump to navigation Jump to search

TRON/TROFF[edit | edit source]

Statements[edit | edit source]

(+) Appearance (+) Standard (+) Console

Syntax[edit | edit source]

TRON [ALL] TRON BREAK TROFF

Description[edit | edit source]

These statements affect which parts of your program can be traced with the Debugger tool. In order to build a program that can be traced in the Debugger, you must create your program as a project (using the Project Manager), and in the Project window you must select with a "bug icon" each file that you want to trace. By default, all the lines in the selected files can then be traced. However, there may be cases in which you want to limit the lines that can be traced, especially because treaceable lines make your compiled program's size larger and take somewhat longer to execute. TROFF cause subsequent lines to be untraceable. This is a non-executable statement, so it affects the lines that appear below it, regardless of their actual order of execution. It overrides previous occurrences of TRON [ALL]. TRON [ALL] causes subsequent lines to be traceable. This is the default condition for all lines in your file above the first occurrence of TROFF. This is a non-executable statement, so it affects the lines that appear below it, regardless of their actual order of execution. It overrides previous occurrences of TROFF. Note that the ALL keyword is optional. TRON BREAK is an executable statement which causes the Debugger window to appear (if it was previously hidden), and causes execution to pause. It has the same effect as setting a breakpoint in the Debugger. TRON BREAK is ignored if it appears within a section of code which is not traceable.

See Also[edit | edit source]

COMPILE LONG IF; TRON X