public void OnModuleLoad(NodeScript debuggedModule) { // This will get called when the entrypoint breakpoint is fired because the engine sends a mod-load event // for the exe. if (m_engine.DebuggedProcess != null) { //Debug.Assert(Worker.CurrentThreadId == m_engine.DebuggedProcess.PollThreadId); } var ad7Module = new AD7Module(debuggedModule); //debuggedModule.Client = ad7Module; // The sample engine does not support binding breakpoints as modules load since the primary exe is the only module // symbols are loaded for. A production debugger will need to bind breakpoints when a new module is loaded. Send(new AD7ModuleLoadEvent(ad7Module, true /* this is a module load */), null); }
public AD7ModuleLoadEvent(AD7Module module, bool fLoad) { m_module = module; m_fLoad = fLoad; }