diff options
author | Keting Yang <ketyang@microsoft.com> | 2020-01-22 21:23:26 +0300 |
---|---|---|
committer | Matt Ward <ward.matt@gmail.com> | 2020-01-23 22:12:11 +0300 |
commit | 96f5a04f086a00f8e789cbc3c57c785d77f45d1b (patch) | |
tree | 542257b177c3ee36a7834097a7a65f7d480ff33e | |
parent | 32f8b704970dfffc99d493b5378fe2279f98bca4 (diff) |
[Debugger] Update exception options to include unhandled exception
Fixes: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1051257/
-rw-r--r-- | main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol/MonoDevelop.Debugger.VsCodeDebugProtocol/VSCodeDebuggerSession.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol/MonoDevelop.Debugger.VsCodeDebugProtocol/VSCodeDebuggerSession.cs b/main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol/MonoDevelop.Debugger.VsCodeDebugProtocol/VSCodeDebuggerSession.cs index b1bbbbf03c..643d0b72c1 100644 --- a/main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol/MonoDevelop.Debugger.VsCodeDebugProtocol/VSCodeDebuggerSession.cs +++ b/main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol/MonoDevelop.Debugger.VsCodeDebugProtocol/VSCodeDebuggerSession.cs @@ -219,7 +219,7 @@ namespace MonoDevelop.Debugger.VsCodeDebugProtocol currentExceptionState = hasCustomExceptions; var exceptionRequest = new SetExceptionBreakpointsRequest ( Capabilities.ExceptionBreakpointFilters.Where (f => hasCustomExceptions || (f.Default ?? false)).Select (f => f.Filter).ToList ()); - exceptionRequest.ExceptionOptions = new List<ExceptionOptions> () {new ExceptionOptions(ExceptionBreakMode.UserUnhandled)}; + exceptionRequest.ExceptionOptions = new List<ExceptionOptions> () {new ExceptionOptions (ExceptionBreakMode.UserUnhandled), new ExceptionOptions (ExceptionBreakMode.Unhandled)}; protocolClient.SendRequest (exceptionRequest, null); unhandleExceptionRegistered = true; } @@ -466,7 +466,7 @@ namespace MonoDevelop.Debugger.VsCodeDebugProtocol stackFrame = (VsCodeStackFrame)backtrace.GetFrame (0); } var response = protocolClient.SendRequestSync (new ExceptionInfoRequest (body.ThreadId ?? -1)); - if (response.BreakMode.Equals (ExceptionBreakMode.UserUnhandled)) { + if (response.BreakMode.Equals (ExceptionBreakMode.UserUnhandled) || response.BreakMode.Equals (ExceptionBreakMode.Unhandled)) { args = new TargetEventArgs (TargetEventType.UnhandledException); } else { if (!breakpoints.Select (b => b.Key).OfType<Catchpoint> ().Any (c => ShouldStopOnExceptionCatchpoint (c, stackFrame.frameId))) { |