Browse Source

small adjustments to Exception Form

pull/18/head
Siegfried Pammer 14 years ago
parent
commit
47c9ee8fc8
  1. 2
      data/resources/StringResources.resx
  2. 2
      src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs

2
data/resources/StringResources.resx

@ -5980,7 +5980,7 @@ Button is enabled only for handled exceptions.</comment> @@ -5980,7 +5980,7 @@ Button is enabled only for handled exceptions.</comment>
<comment>NB: Only used for exceptions that can not be intercepted (eg. StackOverflow)</comment>
</data>
<data name="MainWindow.Windows.Debug.ExceptionForm.Message" xml:space="preserve">
<value>An exception of type {0} was thrown:\n{1}</value>
<value>An exception of type {0} was thrown:</value>
</data>
<data name="MainWindow.Windows.Debug.ExceptionForm.ShowExceptionDetails" xml:space="preserve">
<value>Show Exception Details</value>

2
src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs

@ -875,7 +875,7 @@ namespace ICSharpCode.SharpDevelop.Services @@ -875,7 +875,7 @@ namespace ICSharpCode.SharpDevelop.Services
}
string title = e.IsUnhandled ? StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.Title.Unhandled}") : StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.Title.Handled}");
string message = string.Format(StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.Message}"), e.Exception.Type, e.Exception.Message);
string message = string.Format(StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.Message}"), e.Exception.Type);
Bitmap icon = WinFormsResourceService.GetBitmap(e.IsUnhandled ? "Icons.32x32.Error" : "Icons.32x32.Warning");
DebuggeeExceptionForm.Show(debuggedProcess, title, message, stacktraceBuilder.ToString(), icon);

Loading…
Cancel
Save