question

VishnuGopalakrishnan-8317 avatar image
0 Votes"
VishnuGopalakrishnan-8317 asked lextm commented

How to step in to WPF codes while visual studio debugging?

I would like to debug in to System.Windows.UIElement.Visibility.set.
But while debugging, got the error as - Step into: Stepping over method without symbols 'System.Windows.UIElement.Visibility.set'.
I have confirmed that the PresentationCore.dll pdb(symbol) is loaded from the module window.
Also, ensured this https://referencesource.microsoft.com/setup.html

Please help to step in to WPF codes.

dotnet-csharpwindows-wpfvs-debugging
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

As Microsoft moves its focus on .NET Core, stepping into .NET Framework has been troublesome for a long while due to various issues (out-of-date symbols for example). You shouldn't beat yourself too hard to get it working. Use a decompilation tool as one of the answers indicated and that's should be enough.

0 Votes 0 ·
Castorix31 avatar image
0 Votes"
Castorix31 answered Castorix31 commented

You can download the source code at wpf

The Visibility is at : UIElement.cs


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you. This I got early. Regarding the debugging could you please help? Where I get the complete C# pdb with source info.

0 Votes 0 ·
Castorix31 avatar image Castorix31 VishnuGopalakrishnan-8317 ·

There are some old threads about this from Google, like : Stepping into WPF Source
(I tried to generate some .pdb from the source code but I have too many errors and I gave up...)


0 Votes 0 ·
karenpayneoregon avatar image
0 Votes"
karenpayneoregon answered

Here is an option, get Jet-Brain's dotPeek (free)

Use dotPeek as a symbol server


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.