Bug 3262 - MD steps into methods which have no symbol info
Summary: MD steps into methods which have no symbol info
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-02-08 04:59 UTC by Marek Safar
Modified: 2015-06-18 03:44 UTC (History)
5 users (show)

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:

Description Marek Safar 2012-02-08 04:59:39 UTC
using System;

class C
	public static void Main ()
		new C();	// Set a breakpoint here and F11. MD steps into ctor which has intentionally no symbol info
Comment 1 Jeffrey Stedfast 2012-02-08 13:18:52 UTC
This seems like a job for the runtime
Comment 2 Mikayla Hutchinson [MSFT] 2012-02-08 15:00:53 UTC
I guess that's a reasonable request that the debugger should step over methods without symbols when "user code only" debugging is enabled. But when that option is disabled, it's perfectly valid to step into IL of options without symbols.

If you really want to stop the debugger stepping into things, there are a number of attributes you can use - DebuggerStepThroughAttribute, DebuggerNonUserCodeAttribute, DebuggerHiddenAttribute, DebuggerStepperBoundaryAttribute. Though I don't know whether sdb supports them. If it does, it would be nice to have an option to disable them.
Comment 3 Marek Safar 2012-02-08 17:29:10 UTC
I am fully aware of the options but none of them work with MD.

I filled relevant bugs some months ago, see #401 for instance
Comment 4 David Karlaš 2015-06-18 03:44:17 UTC
This works as expected in latests version of Mono/MD