DataBasic Reference > The Debugger > Summary of Debugger Commands > MX

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

MX command (DataBasic debugger) (M618706+MX.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

MX

Causes the debugger to be entered immediately on returning from the current module to the calling module. Until then, single-stepping is disabled, but any other debugger entry conditions are obeyed.

The call may be an explicit CALL statement, a GOSUB statement or an external user function.

Syntax

MO

Operation

The MX command is valid only within an external code module or function; otherwise it returns a Command? response.

The debugger is entered with a Return To Module reason.

Only one MX or MO command can be active at any one time in a single context. If the debugger is entered in the meantime (for example, because of a break) then any subsequent MX and MO command returns a Command? response.

Example

:debug m.main 
DEBUG Cmd/Stmt:   M.MAIN 1
*E1 
*V1 
*

Execution Count:  M.MAIN 3
3  > CALL M.SUB1
*mx 
In M.SUB1
In M.SUB2
In M.SUB3
In M.SUB4
In M.SUB4-LOCAL

DEBUG Cmd/Stmt:   M.SUB4 26, [11]
26  [11]    > *
*

Return To Module: M.MAIN 4
4 > CRT "In M.MAIN"
*W 
1   rem TEST PROGRAM.
2   DEFFUN M.FUNC(A)
3   CALL M.SUB1
4 > CRT "In M.MAIN"
*

RealityV15.1 (MoTW) Revision 7Comment on this topic