Thursday, October 18, 2018

Debugging external assemblies



Project -> Properties -> Configuration Properties -> Build -> Generate Debugging Information

From <https://odetocode.com/blogs/scott/archive/2005/01/24/funny-numbers-in-my-stack-trace.aspx>


  1. Start Debugging (attach to process)
  2. In DotPeek generate a PDF file for the needed assembly
  3. In Visual Studio
  • ools -> Options -> Debugger
  • Uncheck "Enable Just my Code"
  1. In Visual Studio
  • Debug -> Windows -> Modules
Then find the dll you need, right click and choose Load Symbols and find the path to your PDB file
  1. Debug > New Breakpoint in fuction > enter full name of function including namespace

From <https://stackoverflow.com/questions/654696/how-to-debug-external-class-library-projects-in-visual-studio>


From <https://stackoverflow.com/questions/654696/how-to-debug-external-class-library-projects-in-visual-studio>


Full path to a code file after decompiling (after stopping Debugging)
C:\Users\Olga.Kogan\AppData\Local\JetBrains\Shared\v08\DecompilerCache\decompiler\B14E121C-785E-4E83-8327-27F61CB85B2F\6e\133e63bc\AuthenticationClient.cs






No comments:

Post a Comment