/// <summary> /// Called by the debugger when a debugging session starts and managed debugging is being used. /// </summary> public void StartDebugging() { // Hook up a callbacks (the call blocks until the message is processed). using (DebuggerComponent.ManagedEditAndContinueService()) { DkmCustomMessage.Create( Connection: null, Process: null, SourceId: DebuggerService.MessageSourceId, MessageCode: 0, Parameter1: this, Parameter2: null).SendLower(); } _debuggingService.OnBeforeDebuggingStateChanged(DebuggingState.Design, DebuggingState.Run); _encService.StartDebuggingSession(); }