I'm trying to debug .NET app DLL. I'm attaching to the process, open DLL module from memory and I'm setting the breakpoint inside of DLL. After hitiing the breakpoint dnSpy didn't show Locals and I can't step through the code. Why is it like that?
-
Which dnspy version you've used?– malikcjmMay 9 at 19:29
-
1I'm using latest version 1.6.8. Binary is protected by Themida. I'm injecting scylla and attaching to it. In the meantime I've made a dump from memory and I have noticed that this binary is also protected by Smart Assembly. Anyway I can't run it after dump.– unknownMay 10 at 20:09
1 Answer
It is possible that your binary is protected using proxy objects.
Proxy objects usually implement and provide obscure debugging information (and/or methods) that interferes dnSpy's or other debuggers' initiative to display locals and other useful information. For more info look here.
Note that it's not guaranteed for this method to be the cause, but for me it was the most frequent case.