From a4469187755c56c851aa20ea1e080dd62856424f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Srbeck=C3=BD?= Date: Fri, 15 Sep 2006 19:36:00 +0000 Subject: [PATCH] Do not catch workbench exceptions if debugger is attached git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1802 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../ICSharpCode.SharpDevelop.Sda/Src/CallHelper.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Main/ICSharpCode.SharpDevelop.Sda/Src/CallHelper.cs b/src/Main/ICSharpCode.SharpDevelop.Sda/Src/CallHelper.cs index 6a10e9b0ef..928822f31a 100644 --- a/src/Main/ICSharpCode.SharpDevelop.Sda/Src/CallHelper.cs +++ b/src/Main/ICSharpCode.SharpDevelop.Sda/Src/CallHelper.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Reflection; @@ -118,9 +119,15 @@ namespace ICSharpCode.SharpDevelop.Sda StartWorkbenchCommand wbc = new StartWorkbenchCommand(); wbc.AllowTipOfTheDay = wbSettings.UseTipOfTheDay; callback.BeforeRunWorkbench(); - wbc.Run(wbSettings.InitialFileList); - } catch (Exception ex) { - exception = ex; + if (Debugger.IsAttached) { + wbc.Run(wbSettings.InitialFileList); + } else { + try { + wbc.Run(wbSettings.InitialFileList); + } catch (Exception ex) { + exception = ex; + } + } } finally { LoggingService.Info("Unloading services..."); try {