1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-03 05:21:21 +00:00
qb64/internal/help/TRON.txt
2019-04-14 22:15:33 -03:00

41 lines
945 B
Plaintext

''This page is maintained for historic purposes. The keyword is not supported in QB64.''
----
The {{KW|TRON}} statement turns on line number tracing.
{{PageSyntax}}
:<code>{{KW|TRON}}</code>
{{PageDescription}}
*'''[[Keywords currently not supported by QB64|Not supported in QB64.]]'''
* When line number tracing is on, the line numbers of statements are output immediately before they are executed.
* Use {{KW|TROFF}} to turn off line number tracing.
* Line number tracing only has an effect when programs are compiled with debugging code (<tt>BC.EXE /D</tt>).
{{PageExamples}}
:Demonstrates simple line number tracing:
{{CodeStart}}1 {{Cl|TRON}}
2 {{Cl|FOR...NEXT|FOR}} n% = 1 {{Cl|TO}} 3
3 {{Cl|PRINT}} "inside loop"
4 {{Cl|FOR...NEXT|NEXT}} n%
5 {{Cl|TROFF}}
{{CodeEnd}}
{{OutputStart}}[2][3]inside loop
[4][3]inside loop
[4][3]inside loop
[4][5]
{{OutputEnd}}
{{PageSeeAlso}}
* {{KW|TROFF}}
{{PageNavigation}}