diff options
author | Michael Belyaev <usrsse2@me.com> | 2019-05-13 16:28:05 +0300 |
---|---|---|
committer | Jeffrey Stedfast <jestedfa@microsoft.com> | 2019-05-28 18:26:39 +0300 |
commit | 354d275c1838e050fc0a342c492ba60b9384891c (patch) | |
tree | 47be7de93d83a5bbdfc4a99fb2503e112cb2532a /main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol | |
parent | df1cf4116f0a26342acb8558a5a2175a2a2bf80c (diff) |
Support System.Exception with subclasses
Diffstat (limited to 'main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol')
-rw-r--r-- | main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol/MonoDevelop.Debugger.VsCodeDebugProtocol/VSCodeDebuggerSession.cs | 4 |
1 files changed, 3 insertions, 1 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 9f68233ec9..d29b28c369 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 @@ -355,7 +355,9 @@ namespace MonoDevelop.Debugger.VsCodeDebugProtocol break; case StoppedEvent.ReasonValue.Exception: var match = VsdbgExceptionNameRegex.Match (body.Text); - if (match.Success && match.Groups.Count == 2 && !breakpoints.Select (b => b.Key).OfType<Catchpoint> ().Any (e => e.Enabled && match.Groups[1].Value == e.ExceptionName)) + if (match.Success && match.Groups.Count == 2 && !breakpoints.Select (b => b.Key).OfType<Catchpoint> ().Any (e => + e.Enabled && + (match.Groups[1].Value == e.ExceptionName) || (e.IncludeSubclasses && e.ExceptionName == "System.Exception"))) { OnContinue (); return; |