void DbgManager_ProcessPaused(object sender, ProcessPausedEventArgs e) { Debug.Assert(dbgCallStackService.Thread == e.Thread); var info = GetLocation(); if (info.location != null) { dbgCallStackService.ActiveFrameIndex = info.frameIndex; referenceNavigatorService.Value.GoTo(info.location); } ActivateMainWindow(); }
void DbgManager_ProcessPaused(object sender, ProcessPausedEventArgs e) { Debug.Assert(dbgCallStackService.Thread == e.Thread); var info = GetLocation(); if (!(info.location is null)) { dbgCallStackService.ActiveFrameIndex = info.frameIndex; referenceNavigatorService.Value.GoTo(info.location); } if (debuggerSettings.Value.FocusDebuggerWhenProcessBreaks) { ActivateMainWindow(); } }