Bug 5809 - MonoDevelop debugger cannot stop on class-level variable declarations on Mac
Summary: MonoDevelop debugger cannot stop on class-level variable declarations on Mac
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-06-21 17:13 UTC by PJ
Modified: 2012-09-02 13:15 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description PJ 2012-06-21 17:13:12 UTC
Steps to reproduce:

Open new MFA application template
Set a breakpoint in Activity1.cs on line 15 (int count = 1)
Debug


Expected behavior:
Debugger should stop on the breakpoint

Actual behavior:
Debugger does not stop on the breakpoint

See it in action!:
http://screencast.com/t/WXsf4xlW

More variables/types:
http://screencast.com/t/JJhgQBq4c



This happens on Mac MD only.
This happens with:
MD 3.0.3.2
MFA 4.2.3


The debugger stops on this line in Visual Studio:(http://screencast.com/t/32ppzVQ2R)

The debugger stops on this line in MD using Windows.
(http://screencast.com/t/uQepU3lFD)
Comment 1 PJ 2012-08-02 17:18:24 UTC
This bug is also seen in MonoTouch projects. You cannot set a breakpoint on a class level variable and hit the breakpoint.



Still occurring on:

MD 3.0.4.2
MFA 4.2.5
MT 5.99.1
Mono 2.10.9_11
Comment 2 Zoltan Varga 2012-08-28 14:06:39 UTC
mcs in 2.10 doesn't generate correct line number info for that line. This has already been fixed in master.