Difference between revisions of "SET TRACEWINDOW"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=SET TRACEWINDOW=
 
 
 
==Class==
 
Error Handling and Debugging
 
 
 
 
==Purpose==
 
==Purpose==
 
Enable or disable the use of trace windows
 
Enable or disable the use of trace windows
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
ACTIVATE WINDOW, DEFINE WINDOW, SET ERRORWINDOW, SET COMMANDWINDOW
+
[[ACTIVATE WINDOW]], [[DB_SAVEHISTORY]], [[DEFINE WINDOW]], [[SET COMMANDWINDOW]], [[SET COMPILE]], [[SET DEVELOPMENT]], [[SET DOHISTORY]], [[SET ERRORWINDOW]], [[SET HISTORY]]
  
  
Line 25: Line 18:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
// Entered interactively
 
// Entered interactively
 
set compile off
 
set compile off
Line 31: Line 24:
 
set dohistory on
 
set dohistory on
  
// In program file
+
define window debug from 15,01 to 22,78 trace
define window debug;
+
from 15,01 to 22,78;
+
trace
+
set tracewindow on
+
  
do progname</pre>
+
set tracewindow on
 +
do progname
 +
</code>
  
  
 
==Products==
 
==Products==
Recital Terminal Developer
+
Recital  
 +
[[Category:Documentation]]
 +
[[Category:Commands]]
 +
[[Category:Set_Commands|TRACEWINDOW]]
 +
[[Category:Screen Windows]]
 +
[[Category:Screen Windows Set Commands]]
 +
[[Category:Error Handling and Debugging]]
 +
[[Category:Error Handling and Debugging Set Commands]]

Latest revision as of 15:45, 25 November 2009

Purpose

Enable or disable the use of trace windows


Syntax

SET TRACEWINDOW ON | OFF | (<expL>)


See Also

ACTIVATE WINDOW, DB_SAVEHISTORY, DEFINE WINDOW, SET COMMANDWINDOW, SET COMPILE, SET DEVELOPMENT, SET DOHISTORY, SET ERRORWINDOW, SET HISTORY


Description

The SET TRACEWINDOW command is used to enable or disable the use of trace windows. A trace window is a window that automatically activates itself and displays each executing line of a currently running program. Trace windows are specified by including the TRACE keyword with the DEFINE WINDOW command. A window is an area of the screen designated for output and input. There is no limit to the number of windows you may define. Windows are defined with the DEFINE WINDOW command, and are activated with the ACTIVATE WINDOW command.

To display lines of the executing program, a trace window requires the following command settings: SET COMPILE OFF, SET HISTORY ON, SET DOHISTORY ON. When SET TRACEWINDOW is ON, trace windows are automatically activated when a program is run. When SET TRACEWINDOW is OFF, trace windows do not activate or display when programs are run.


Example

// Entered interactively
set compile off
set history on
set dohistory on
 
define window debug from 15,01 to 22,78 trace
 
set tracewindow on
do progname


Products

Recital