[Mono-bugs] [Bug 639062] New: VS crashes when Remote debugging Break on Exception: System.ArgumentException is used

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Sep 13 18:11:45 EDT 2010



           Summary: VS crashes when Remote debugging Break on Exception:
                    System.ArgumentException is used
    Classification: Mono
           Product: Mono Tools for Visual Studio
           Version: 2.0
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Debug in Mono
        AssignedTo: martin at novell.com
        ReportedBy: mlegendre at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Component Test
           Blocker: ---

Description of Problem:
VS crashes when remotely debugging with System.ArgumentException checked

Win 7 ultimate x86
monotools 2.0-70509

remoting to MacOSX 10.6
monotools server 2.0.7180
mono 2.8_3 for MacOSX 10.6

Steps to reproduce the problem:

1. Start with an empty console project and add the code below to it.
2. Type "Ctl-Alt-E" to bring up the Exceptions dialog.
3. Common Language Runtime (CLR) "User-unhandled should already be checked (VS 
  default setting).
4. Expand CLR -> Exceptions->System and check the System.ArgumentException 
Thrown box.
5. Debug the program Remotely using mono.
6. The program should stop on line 30: 'throw new ArgumentException ("ack!");' 
 with a System.ArgumentException error.
7. Reset changes made in step 4.


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

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);

Actual Results:
Visual Studio crashes

Expected Results:
should stop at exception

How often does this happen? 
every time

Additional Information:

Configure bugmail: https://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