We are creating a solution for Release, but when trying to connect using a professional studio 2010, not a single thread shows information about the stack, nor can any breakpoint be set, etc.
The goal is to connect Visual Studio / JIT Debugger to the running process, with as many optimization benefits as possible.
Most of our searches come down to "compiling with debug: full" and you can debug it, but that doesn't seem to be the case, I believe JIT optimizes the code at runtime and therefore we cannot debug, is that true? Is it possible to compile and tell JIT about downplaying optimizations and enable debugging? (while maintaining other optimizations)
UPDATE
using @HansPassant's answer, I looked at the modules and saw that although pdbs are in the same directory as the binaries, in fact, no debug symbols were loaded. I also saw that my libraries are marked as "User Code" - "NO", which is probably the reason that it did not load automatically. By loading characters manually And by disabling "my-only-code" , I was also able to set breakpoints and view stacks.
Question: Why is my code not marked as User Code? is this normal behavior Can I customize this to my builds in some way to avoid this?
c # clr visual-studio-2010 release visual-studio-debugging
Amit bens
source share