File MIES_Utilities_Debugger.ipf

utility functions for debugger

Debugger state constants for DisableDebugger and ResetDebuggerState

static const double DEBUGGER_ENABLED = 0x01
static const double DEBUGGER_DEBUG_ON_ERROR = 0x02
static const double DEBUGGER_NVAR_CHECKING = 0x04

Functions

variable DisableDebugger()

Disable the debugger.

Returns:

the full debugger state binary encoded. first bit: on/off, second bit: debugOnError on/off, third bit: nvar/svar/wave checking on/off

variable ResetDebuggerState(variable debuggerState)

Reset the debugger to the given state.

Useful in conjunction with DisableDebugger() to temporarily disable the debugger

variable debuggerState = DisableDebugger()
// code which might trigger the debugger, e.g. CurveFit
ResetDebuggerState(debuggerState)
// now the debugger is in the same state as before

variable DisableDebugOnError()

Disable Debug on Error.

Returns:

1 if it was enabled, 0 if not, pass this value to ResetDebugOnError()

variable ResetDebugOnError(variable debugOnError)

Reset Debug on Error state.

Parameters:

debugOnError – state before, usually the same value as DisableDebugOnError() returned