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?
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.