MAINDEBUG User's Guide, Appendix C

previous   next   top   contents   index   framed top   this page unframed


C. Command Summary

C.1. General Command Summary

Table C–1. General Command Summary
? display command summary
{n} repeat last debugger command with count n
Q quit (exit the debugger)
/cs/ define char c to be s
n{-}=c replace with STRING for macro char c
<ecm> enter MAINEDIT command mode (in display interface)
@ change to display interface
-@ change back to line interface

C.2. Debugging Command Summary

See
Table C–2 for a summary of the debugging commands.

Table C–2. Debugging Command Summary
A ary,l1,u1,l2,u2,l3,u3 show ARRAY slice ary[l1 TO u1,...]
{+}B{@{m.}x}{[cond]}{:cmds} set break at cursor {or MODULE m, iUnit x or PROCEDURE x} with condition cond; execute debugger commands cmds when break reached
{n}{.i}C continue {at iUnit i}, till nth break
{n}.C continue at cursor, till nth break
.D d1;...;dn compile definitions or declarations d1;...;dn
!D id show line where id was declared/defined
{-}E {m} execute MAINSAIL executive {or MODULE m}
.F p,f1,f2,... V p.f1,p.f2,... (p can be unclassified)
H e1,e2,... hex values of expressions e1,e2,...
.H p1,p2,... hex values of objects at p1,p2,...
{1}I display {abbreviated} debug info
.I id1,id2,... display info about identifiers idi
+.I i1,i2,... like .I, but include PROCEDURE bodies
{n}J step n times, jump into PROCEDUREs
K n break when count = n
-K remove count break
M set to break context
M m open MODULE m (m can be a file name)
.M p open MODULE with data section p
-M m close m's intmod and dispose m's objmod
{n}N move to nth caller from current PROCEDURE
{n}-N move to nth callee from current PROCEDURE
{n}.N move to where exception was raised
{n}-.N undo .N command n times
+N set to break context
!N set to command context
O n cursor to iUnit n, current MODULE
OC s open coroutine s
OF a open PROCEDURE frame with address a
OI s open intmod library s
OL s open objmod library s
{-}OP s set {clear} options s
Q quit (exit the program)
+Q exit MAINDEBUG
R remove break at cursor
R@m.x remove break at MODULE m, iUnit x or PROCEDURE x
R@@ remove all breaks
!R remove all breaks
+R{s} remote debug {cmdLine = s}
+!R h {s} remote debug on host h {cmdLine = s}
{n}S step n times, do not enter PROCEDUREs
.SF show variables in current PROCEDURE frame
.SS{s} show variables in all PROCEDURE frames {of coroutine s}
{+}T{@{m.}x}{[cond]}{:cmds} same as B, except set temporary break
!T{s} trace PROCEDUREs, output to file s
-!T stop tracing PROCEDUREs
V e1,e2,... values of expressions e1,e2,...
.V p1,p2,... values of objects at POINTERs or ADDRESSes p1,p2,...
+{.}W ws1,ws2,... watch {objects at} ws1,ws2,...
+W:{Z, N or C} ws1,ws2,... +W and break if Zero, NonZero, Changes
-W n1,n2,... stop watching watch expressions n1,n2,...
-!W stop watching all watch expressions
XM a{,t1,t2,...} examine memory at address a {types t1,t2,...}
+XM a{,t1,t2,...} examine PDF at address a {types t1,t2,...}
XS s1;...;sn execute statements s1;...;sn
<ecm> enter MAINEDIT command mode

C.3. Editing Command Summary

See
Table C–3 for a summary of the editing commands. With the exception of the F command, these commands are available only in the line interface.

Table C–3. Editing Command Summary
{n}D down n lines, then first word on line
F s open source file s
{p}{.l}G] go to page p line l
-{p}G go backward p pages (then first line)
+{p}G go forward p pages (then first line)
{-}{n}L list n lines starting {before} at current line
P n go to position n
Q quit (exit the program)
{n}U up n lines, then first word on line
{n}W window of size n about current line
{n}< left n chars on current line
{n}( left n words on current line
{n}> right n chars on current line
{n}) right n words on current line
{n}'c search line forward for nth char c
{n}-'c search line backward for nth char c
{n}"s" search file forward for nth STRING s
{n}-"s" search file backward for nth STRING s
/c.../ define char c to be ...
=c replace with STRING for macro char c
@ enter MAINEDIT command mode


previous   next   top   contents   index   framed top   this page unframed

MAINDEBUG User's Guide, Appendix C