void jsd_DebuggerOff(JSDContext* jsdc) { /* clear hooks here */ JS_SetNewScriptHookProc(jsdc->jstaskstate, NULL, NULL); JS_SetDestroyScriptHookProc(jsdc->jstaskstate, NULL, NULL); #ifdef LIVEWIRE LWDBG_SetNewScriptHookProc(NULL,NULL); #endif /* clean up */ jsd_DestroyAllJSDScripts(jsdc); jsd_DestroyAllSources(jsdc); _destroyJSDContext(jsdc); if( jsdc->userCallbacks.setContext ) jsdc->userCallbacks.setContext(NULL, jsdc->user); }
void jsd_DebuggerOff(JSDContext* jsdc) { jsd_DebuggerPause(jsdc, JS_TRUE); /* clear hooks here */ JS_SetNewScriptHookProc(jsdc->jsrt, NULL, NULL); JS_SetDestroyScriptHookProc(jsdc->jsrt, NULL, NULL); #ifdef LIVEWIRE LWDBG_SetNewScriptHookProc(NULL,NULL); #endif /* clean up */ JSD_LockScriptSubsystem(jsdc); jsd_DestroyScriptManager(jsdc); JSD_UnlockScriptSubsystem(jsdc); jsd_DestroyAllSources(jsdc); _destroyJSDContext(jsdc); if( jsdc->userCallbacks.setContext ) jsdc->userCallbacks.setContext(NULL, jsdc->user); }
JSD_DestroyAllSources( JSDContext* jsdc ) { JSD_ASSERT_VALID_CONTEXT(jsdc); jsd_DestroyAllSources(jsdc); }