Browse Source

Do not catch workbench exceptions if debugger is attached

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1802 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 19 years ago
parent
commit
a446918775
  1. 7
      src/Main/ICSharpCode.SharpDevelop.Sda/Src/CallHelper.cs

7
src/Main/ICSharpCode.SharpDevelop.Sda/Src/CallHelper.cs

@ -7,6 +7,7 @@ @@ -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 @@ -118,9 +119,15 @@ namespace ICSharpCode.SharpDevelop.Sda
StartWorkbenchCommand wbc = new StartWorkbenchCommand();
wbc.AllowTipOfTheDay = wbSettings.UseTipOfTheDay;
callback.BeforeRunWorkbench();
if (Debugger.IsAttached) {
wbc.Run(wbSettings.InitialFileList);
} else {
try {
wbc.Run(wbSettings.InitialFileList);
} catch (Exception ex) {
exception = ex;
}
}
} finally {
LoggingService.Info("Unloading services...");
try {

Loading…
Cancel
Save