[Mono-bugs] [Bug 546717] New: Feature: Step into static class .cctor

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 13 19:13:58 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=546717


           Summary: Feature: Step into static class .cctor
    Classification: Mono
           Product: Mono: Debugger
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: backend
        AssignedTo: martin at novell.com
        ReportedBy: martin at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development


We currently don't support stepping into a static class .cctor.

The only way of debugging these is stetting a breakpoint.

>From a technical point of view, stepping into the .cctor isn't really the
problem, stepping out of it is.  The problem is that these are called from the
runtime, so we'd leave the user stuck inside the runtime having to either
single-step or 'finish' out.

For instance look at the following test case:

=====
using System;

public class C
{
    public static void Main ()
    {
        string s = new string ('v', 1);
        Console.WriteLine (s);
    }
}
=====

If you try to 'step' into the Console.WriteLine(), we're currently skipping its
cctor.

I could easily add code to make the debugger stop in the .cctor, but when you
step out of it, you can't get into the Console.WriteLine() anymore without
manually stepping through a lot of unmanaged runtime code.

I have some ideas how to fix this, but it'll require some work to do this
right.

Fixing this will also get us a little closer to just-my-code debugging.

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