Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Created attachment 3695 [details]
Example project demonstrating the problem
"Step into" debugger functionality does not work correctly. It used to work in older MonoDevelop + monotouch.
The attached sample project demonstrates the problem.
Do the following:
1 Open the project in Xamarin Studio
2 Set a breakpoint on line 27 of StepIntoDefectViewController.cs (in the OnBtnBugTouchUpInside method).
3 Run-debug the project
4 When you hit the breakpoint try to step into the code line. Instead what happens is that the app just keeps running, skipping both the method to step into and also the rest of the event handler method OnBtnBugTouchUpInside.
This is not at all how I would expect it to work, and not how it works in Visual Studio.
Stressing with this is costing me as a developer a lot of time. Please help me find a solution to this :-)
Here is my system info:
=== Xamarin Studio ===
Version 4.0.3 (build 13)
Installation UUID: 984ac7e7-e4dc-40dd-XXXXXXXXXXXX
Mono 2.10.12 (mono-2-10/c9b270d)
Package version: 210120000
=== Apple Developer Tools ===
Xcode 4.6 (2066)
=== Xamarin.iOS ===
Version: 220.127.116.11 (Business Edition)
Build date: 2013-19-03 13:42:59-0400
=== Xamarin.Mac ===
Xamarin.Mac: Not Installed
=== Xamarin.Android ===
=== Build Information ===
Release ID: 400030013
Git revision: fae7c2bde0e8d51943fbd6afa22d7d2bb7a1192f
Build date: 2013-03-21 19:16:39+0000
Xamarin addins: 906a1edff23bcfd0ab7518463620a8ee506eaea2
=== Operating System ===
Mac OS X 10.7.5
Darwin XXXXXX-Mac-mini.local 11.4.2 Darwin Kernel Version 11.4.2
Thu Aug 23 16:25:48 PDT 2012
Does this happen on the simulator, or on the device ?
It happens in the simulator, I haven't tried it on the device yet
As a workaround, you can try disabling the 'Step over properties and operators' in Preferences/Debugger.
Thanks I will try it :-) It would be nice to have a fix to this problem though, since it is quite important functionality.
So this is not necessarily a bug. You probably have both the 'step over properties and operators' and the 'debug project code only' options set, so the debugger tries to single step until it reaches code which is
neither. Since that particular method only contains property accesses and calls to framework code (x.ToString ()), it just single steps indefinitely.
Fixed in master