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. 13
      src/Main/ICSharpCode.SharpDevelop.Sda/Src/CallHelper.cs

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

@ -7,6 +7,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using System.IO; using System.IO;
using System.Reflection; using System.Reflection;
@ -118,9 +119,15 @@ namespace ICSharpCode.SharpDevelop.Sda
StartWorkbenchCommand wbc = new StartWorkbenchCommand(); StartWorkbenchCommand wbc = new StartWorkbenchCommand();
wbc.AllowTipOfTheDay = wbSettings.UseTipOfTheDay; wbc.AllowTipOfTheDay = wbSettings.UseTipOfTheDay;
callback.BeforeRunWorkbench(); callback.BeforeRunWorkbench();
wbc.Run(wbSettings.InitialFileList); if (Debugger.IsAttached) {
} catch (Exception ex) { wbc.Run(wbSettings.InitialFileList);
exception = ex; } else {
try {
wbc.Run(wbSettings.InitialFileList);
} catch (Exception ex) {
exception = ex;
}
}
} finally { } finally {
LoggingService.Info("Unloading services..."); LoggingService.Info("Unloading services...");
try { try {

Loading…
Cancel
Save