Bug 11413 - Step into is defect
Summary: Step into is defect
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: 2013-03-26 06:45 UTC by larswarholm
Modified: 2013-07-05 08:25 UTC (History)
7 users (show)

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


Attachments
Example project demonstrating the problem (12.20 KB, application/zip)
2013-03-26 06:45 UTC, larswarholm
Details


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 larswarholm 2013-03-26 06:45:51 UTC
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
Runtime:
	Mono 2.10.12 (mono-2-10/c9b270d)
	GTK 2.24.16
	GTK# (2.12.0.0)
	Package version: 210120000

=== Apple Developer Tools ===

Xcode 4.6 (2066)
Build 4H127

=== Xamarin.iOS ===

Version: 6.2.1.201 (Business Edition)
Hash: ed9807c
Branch: 
Build date: 2013-19-03 13:42:59-0400

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Xamarin.Android ===

Not Installed

=== 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
    root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
Comment 1 Zoltan Varga 2013-03-27 11:00:53 UTC
Does this happen on the simulator, or on the device ?
Comment 2 larswarholm 2013-03-27 11:04:12 UTC
It happens in the simulator, I haven't tried it on the device yet
Comment 3 Zoltan Varga 2013-03-27 11:08:00 UTC
As a workaround, you can try disabling the 'Step over properties and operators' in Preferences/Debugger.
Comment 4 larswarholm 2013-03-27 14:21:59 UTC
Thanks I will try it :-) It would be nice to have a fix to this problem though, since it is quite important functionality.
Comment 5 Zoltan Varga 2013-04-20 18:09:01 UTC
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.
Comment 6 Marek Safar 2013-07-05 08:25:39 UTC
Fixed in master