Question

I'm setting a break point in the static Main() entry point function(in App.g.i.cs) in the default wpf project created by visual studio 2012, targeting .net 4.5. However, when I debug it, it's constantly skipping my break point and complaining that no symbols have been loaded for this document.

I've tried everything in this solution: Why does my C# debugger skip breakpoints?

and also restarted vs 2012 several times; also tried running the release candidate but have got no luck. I even downloaded symbols for .net itself and enabled "Enable .NET Framework source stepping" in tools->options->debugging->General.

What can I possibly miss here?

Please enlighten me!

h9uest

Was it helpful?

Solution

You cannot debug *.g.i.cs file. (ofcourse unless you have reflector plug-in integrated in your VS2012)

When App.xaml is built, MSBuild generates the actual code that represents what was declared in App.xaml, storing the code in App.g.i.cs.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top