// The debugger calls CauseBreak when the user clicks on the pause button in VS. The debugger should respond by entering // breakmode. public int CauseBreak() { Debug.Assert(Worker.MainThreadId == Worker.CurrentThreadId); m_pollThread.RunOperation(new Operation(delegate { m_debuggedProcess.Break(); })); return(Constants.S_OK); }
public int CauseBreak() { DebugHelper.TraceEnteringMethod(); _dispatcher.Queue(() => DebuggedProcess.Break()); return(VSConstants.S_OK); }