D
Displays the current state of DataBasic debugger controls and options, as set by various debugger commands.
Syntax
D
Operation
Version 2 of this command displays, in the following order:
-
The value associated with the execution counter, if non-zero (E command).
-
The value associated with the break inhibit counter, if greater than one (N command).
-
The source code view window values; that is, the number of lines from current line and number of lines prior to current line (V command).
-
A list of the active traces and whether the trace is suppressed (T command).
-
A list of the active break conditions (B command).
-
Whether the global module trace is active (M command).
-
The list of monitored modules and their monitor types (MA, ME, MR and MD commands).
-
Whether the DEBUG statement is active (@ command).
-
Whether warnings are fatal or suppressed (WF and WS commands).
-
Whether cursor positioning is inhibited (CP command).
-
Whether child and parent contexts are active (DCC and DPC commands).
-
Whether output is going to the printer (LP command).
-
Whether terminal output is suppressed (P command).
Note
The previous Version of this command did not report: trace suppression, child/parent debug contexts, printer output, and terminal output.
Examples
Example 1
*D
Version 2
Trace 1 STRING
Trace 2 DATE
Trace 3 ITEM
Break 1 ITEM=15
Break 2 $ = [4+2]
Break 3 $ = 17
*
Shows that:
-
The values of variables STRING, DATE and ITEM are being traced.
-
A break point has been set to break into the program when ITEM equals 15.
-
Break points have been set on program lines 6 (4+2 - the second line of the item included at source line 4) and 17. Refer to the B and L commands for details of how line numbers can be specified.
Example 2
*D
Version 2
Line Step (E) = 1
Source View (V) = 1
DEBUG Statement Suppressed
*
Example 3
*t/a+
*b £=4+
*e5
*n99
*v2,1
*M
On *@
On *wf
On *cp
Cursor Positioning Inhibited *ma M.SUB1
Added *ME M.SUB2
Added *MR M.SUB3
Added *D
Version 2 Line Step (E) = 5 Break Skip (N) = 99 Source View (V) = 2,1 Trace 1 /a Break 1 £=4 Moldule Change Active Module All SUB1 Module Entry SUB2 Module Entry/Return SUB3 DEBUG Statement Suppressed Warnings Fatal Cursor Positioning Inhibited *
Example 4
*D
Version 2
Line Step (E) = 1
Break Skip (N) = 16
Source View (V) = 1,2
Trace Suppressed
Trace 1 /TMP
Trace 2 /I
Break 1 TMP = I & $ = 10 & J = 6
Break 2 &1
Break 3 &1
Break 4 I = 32
Module Change Active
Module All SUBA
Module Entry SUBE
Module Entry/Return SUBR
DEBUG Statement Suppressed
Warnings Fatal
Cursor Positioning Inhibited
Debug Child Contexts Active
Printer Active
Terminal Output Suppressed
*