Debug into decompiled code
First off, the built in code decompiler in ReSharper 6 is possibly the greatest thing ever.
What I would like to do is be able to step into the decompiled code. I realize this is probably unrealistic for most cases, but what about for code that is actually downloaded from an external source rather than actually decompiled (say, for example, the .NET framework classes). I've been able to get ReSharper to download .NET source code (includes comments and everything, so awesome). And I've also setup VS to download the debug info and properly load the symbols for .NET framework assemblies but when I try to jump down a frame in a call stack, for example, I always get the message saying that it can't find the source code even though I'm looking right at it. I tried going into my solution properties and manually specifying the directory where ReSharper downloads the source code but this hasn't helped. Any idea on how to get this to work?
Please sign in to leave a comment.
Hello,
It should be possible to debug into .NET Framework source code (even without
ReSharper) and here's a blog article describing the steps: http://blogs.msdn.com/b/sburke/archive/2008/01/16/configuring-visual-studio-to-debug-net-framework-source-code.aspx.
Do you actually need to debug into decompiled code (of third party assemblies)
as well? Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
I have yet to run into a scenario where I need to step into decompiled third party libraries but I could see myself wanting that ability at some point.
I had actually followed that article prior to creating this post. I am actually stuck getting "Source is not available for this location" when attempting to step into the .NET framework code. The article has a FAQ section at the end that addresses this issue specifically (FAQ #3) but I tried all the suggestions and I'm still having the issue so I started to think that the way ReSharper was retrieving the source code might somehow be conflicting with the way that VS would get it natively.
Hello,
I have similar problem, except that I would like to debug my own .net dll using pycharm. I thought the way for doing this is to enable JIT debugging as described here:
https://msdn.microsoft.com/en-us/library/5hs4b7a6.aspx#bkmk_enabling
I can import and use my dll using pythonnet. Once an error rises the usual dialog box pops up instead of the visual studio debugger. I do not know ReSharper, is it a tool thay I need for doing such a thing?
Thank you for your help.