diff options
author | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2015-02-08 08:31:57 +0300 |
---|---|---|
committer | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2015-02-08 08:41:47 +0300 |
commit | 42adc64667d029ac74ee7393aadfab4f9fa7dce1 (patch) | |
tree | e9883b82306a729ef15d8725bfc3139fa6bf0d1f /main | |
parent | 75645d74e23e960d8af66ed97639b72b6fcc0656 (diff) |
[TextEditor] Break into debugger on unhandled exception
Diffstat (limited to 'main')
-rw-r--r-- | main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextEditor.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextEditor.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextEditor.cs index 8949da9e56..9c6542011c 100644 --- a/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextEditor.cs +++ b/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextEditor.cs @@ -866,6 +866,9 @@ namespace Mono.TextEditor try { action (GetTextEditorData ()); } catch (Exception e) { + if (Debugger.IsAttached) + Debugger.Break (); + //TODO: we should really find a way to log this properly Console.WriteLine ("Error while executing " + action + " :" + e); } } |