Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorMichael Hutchinson <m.j.hutchinson@gmail.com>2015-02-08 08:31:57 +0300
committerMichael Hutchinson <m.j.hutchinson@gmail.com>2015-02-08 08:41:47 +0300
commit42adc64667d029ac74ee7393aadfab4f9fa7dce1 (patch)
treee9883b82306a729ef15d8725bfc3139fa6bf0d1f /main
parent75645d74e23e960d8af66ed97639b72b6fcc0656 (diff)
[TextEditor] Break into debugger on unhandled exception
Diffstat (limited to 'main')
-rw-r--r--main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextEditor.cs3
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);
}
}