[Mono-bugs] [Bug 605227] Break on exception not implemented
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Jul 12 12:29:10 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=605227
http://bugzilla.novell.com/show_bug.cgi?id=605227#c4
Marc Christensen <mchristensen at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mchristensen at novell.com
--- Comment #4 from Marc Christensen <mchristensen at novell.com> 2010-07-12 16:29:10 UTC ---
Test 1 fails to stop. Test 2 stops bug does not show source code or highlight
anything. Test 3 behaves like Microsoft, it stops and highlights the line of
code.
This is the code used (contributed by jpobst):
======================================
using System;
class Program
{
static void Main (string[] args)
{
// The exception options dialog is Debug->Exceptions (Ctrl-Alt-E)
//
// Three test cases:
// Test 1: CLR Exceptions - User-unhandled is checked (VS default)
// Test 2: CLR Exceptions - Thrown and User-unhandled is checked
// Test 3: CLR Exception - User-unhandled is checked
// Expand CLR Exceptions->System
// Check Thrown for System.ArgumentException
int i;
try {
// Test 2 Stops Here
i = int.Parse ("hello");
} catch (FormatException ex) {
Console.WriteLine (ex);
}
try {
// Test 3 Stops Here
throw new ArgumentException ("ack!");
} catch (ArgumentException ex) {
Console.WriteLine (ex);
}
// Test 1 Stops Here
i = int.Parse ("more hello");
Console.WriteLine (i);
}
}
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list