[Mono-bugs] [Bug 668175] New: Debugger doesn't stop on variable declaration without assignment

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Jan 29 21:47:28 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=668175

https://bugzilla.novell.com/show_bug.cgi?id=668175#c0


           Summary: Debugger doesn't stop on variable declaration without
                    assignment
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Debugger
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jhill at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Description of Problem:
If you set a breakpoint on a line that contains only a variable declaration,
the debugger will not stop on it.

This occurs in Visual Studio and MonoDevelop.

Steps to reproduce the problem:
1. Create a new MonoDroid project. 
2. In the default Activity1.cs, add two lines to the top of the OnCreate
method:
protected override void OnCreate(Bundle bundle) {
  int x;
  x = 1;
  ...

3. Set a break point on both new lines of the method.

Actual Results:
Debugger will stop on
x=1;

Expected Results:
Debugger should stop on
int x;

How often does this happen? 
Always

Additional Information:
This is behavior makes it seem like the debugger is broken in various random
ways when the if the user is prone to only set the breakpoint on the first line
of the method they want to debug.

Also worth noting that the debugger will stop on a variable declaration that
includes an assignment.  For instance, the debugger will stop on:
int x = 1;

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list