LEODebugger
IntroductionThese are hooks and utility functions for a little command-line debugger that can be used to analyze your bytecode while it is running. To activate it, set your LEOContext's PreInstructionProc to LEODebuggerPreInstructionProc. FunctionsLEODebuggerAddBreakpointvoid LEODebuggerAddBreakpoint( LEOInstruction *targetInstruction, struct LEOScript *inScript ); DiscussionSet a breakpoint on the given instruction. This will cause execution to be interrupted and a debugger console to be shown that allows examining the current stack. See Also LEODebuggerPreInstructionProcvoid LEODebuggerPreInstructionProc( struct LEOContext *inContext ); DiscussionUse this function as the PreInstructionProc of your LEOContext to activate the debugger. LEODebuggerRemoveBreakpointvoid LEODebuggerRemoveBreakpoint( LEOInstruction *targetInstruction ); DiscussionRemove a breakpoint set using LEODebuggerAddBreakpoint(). See Also |