Math.Sign(int.MaxValue);
I hit F11 to step into it and it steps right over it. I have all the options set for debugging .NET framework source (I think).
Edit: for someone with Visual Studio 2008 SP1 and .NET 3.5 SP1 who can step into this line successfully: what is the size of your .pdb file?
Edit 2: because I can successfully step into System.Windows.Forms, I'm fairly certain I have a corrupted symbol cache, but every time I try to reload the symbols, it re-downloads as only 763KiB.
Edit 3: Is it possible that it I can't step into System.Math.Sign because System.Math source code simply isn't released/available?
"Step into" will stop on the first executable line inside the function. Note, if you have optimisation enabled, the "first executable line" may not be the one you expect. 8/15/2021. 1and0. There is also a "Step Out" allowing you to step out of a function which you are currently stepping through.
Step into – An action to take in the debugger. If the line does not contain a function it behaves the same as “step over” but if it does the debugger will enter the called function and continue line-by-line debugging there.
You need to load the symbols for mscorlib.dll
first.
Click Debug, Windows, Modules, then right-click on mscorlib.dll
and click Load Symbols.
Then, try again. FYI, the simplest way to make sure that .Net source debugging is working is to try to view the source of a method in your call stack.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With