LEORemoteDebugger
IntroductionThese are hooks and utility functions for communicating with the ForgeDebugger application that can be used to analyze your bytecode while it is running using a GUI. Functions
LEOInitRemoteDebuggerbool LEOInitRemoteDebugger( const char *inHostName ); DiscussionInitialize the debugger and establish a connection to the debugger process. To reconnect after a failed connection, pass NULL as the inHostName (it'll use the host name from the previous attempt). LEORemoteDebuggerAddBreakpointvoid LEORemoteDebuggerAddBreakpoint( LEOInstruction *targetInstruction ); 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 LEORemoteDebuggerAddFilevoid LEORemoteDebuggerAddFile( const char *filecontents, uint16_t inFileID, struct LEOScript *inScript ); DiscussionRegister a file name and its contents with the debugger, so it can display its contents and highlight the current line. LEORemoteDebuggerPreInstructionProcvoid LEORemoteDebuggerPreInstructionProc( struct LEOContext *inContext ); DiscussionUse this function as the preInstructionProc of your LEOContext to activate the debugger. LEORemoteDebuggerPromptvoid LEORemoteDebuggerPrompt( struct LEOContext *inContext ); DiscussionUse this function as the promptProc of your LEOContext to activate the debugger. LEORemoteDebuggerRemoveBreakpointvoid LEORemoteDebuggerRemoveBreakpoint( LEOInstruction *targetInstruction ); DiscussionRemove a breakpoint set using LEODebuggerAddBreakpoint(). See Also |