MacroTrace command: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "__TOC__ {| |width="50%"| '''Action:''' |width="50%"| <span class="f_Para">Starts or stops a display in the macro console of...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:


{|
{|
|width="50%"| '''Action:'''
|width="125px"| '''Action:'''
|width="50%"|
|width="775px"|
<span class="f_Para">Starts or stops a display in the [[using_macro_console_cmdline.html#macro_console|macro console]] of a trace of all macro statements in your debugging session. </span>
<span class="f_Para">Starts or stops a display in the [[Using the console and command line#The Console|macro console]] of a trace of all macro statements in your debugging session. </span>


<span class="f_Para">Syntax: </span>
<span class="f_Para">Syntax: </span>
Line 19: Line 19:
<span class="f_Para">This is an example of macro trace output: </span>
<span class="f_Para">This is an example of macro trace output: </span>
<p class="syntax">
<p class="syntax">
<span class="f_CodeExample">&gt;&gt;&gt;macroTrace: step  </span><br />
<span class="f_CodeExample">&gt;&gt;&gt;macroTrace: step  </span>
<span class="f_CodeExample">&gt;&gt;&gt;macroTrace: assert %i </span><span class="f_=XmpPrintTable">=</span><span class="f_CodeExample"> 1 </span><br />
<span class="f_CodeExample">&gt;&gt;&gt;macroTrace: assert %i </span><span class="f_=XmpPrintTable">=</span><span class="f_CodeExample"> 1 </span>
<span class="f_CodeExample">&gt;&gt;&gt;passed... </span><br />
<span class="f_CodeExample">&gt;&gt;&gt;passed... </span>
<span class="f_CodeExample">&gt;&gt;&gt;macroTrace: run </span><br />
<span class="f_CodeExample">&gt;&gt;&gt;macroTrace: run </span>
<span class="f_CodeExample">&gt;&gt;&gt;macroTrace: step </span><br />
<span class="f_CodeExample">&gt;&gt;&gt;macroTrace: step </span>
<span class="f_CodeExample">&gt;&gt;&gt;macroTrace: assert %i </span><span class="f_=XmpPrintTable">=</span><span class="f_CodeExample"> 2 </span><br />
<span class="f_CodeExample">&gt;&gt;&gt;macroTrace: assert %i </span><span class="f_=XmpPrintTable">=</span><span class="f_CodeExample"> 2 </span>
<span class="f_CodeExample">&gt;&gt;&gt;passed...  </span>
<span class="f_CodeExample">&gt;&gt;&gt;passed...  </span>
</p>
</p>

Latest revision as of 17:11, 2 February 2023

Action:

Starts or stops a display in the macro console of a trace of all macro statements in your debugging session.

Syntax:

macroTrace [ on | off ] 

where:

  • on indicates that macro lines will be traced until turned off withmacroTrace off.
  • off turns off macroTrace, if it is on.

Note: When macroTrace is turned on, the trace output is produced only if the macro console is open.

This is an example of macro trace output:

>>>macroTrace: step   >>>macroTrace: assert %i = 1  >>>passed...  >>>macroTrace: run  >>>macroTrace: step  >>>macroTrace: assert %i = 2  >>>passed...  

Note that the trace includes the pass or fail status of assert commands, and it includes syntax help if commands have syntax errors.

Client menu: --
Introduced: Build 50