There is a bug in debugging through decompiled assemblies - when the line of code is quite long, debugger steps after that code points to the line shifted forward, not actual. Seems like there is some unnecessary wrapping happens.
banoz
0

Comments

1 comment

  • Jessica R
    Just a quick update that this issue was resolved by disabling optimization on the assembly that was being debugged:

    1. Close Visual Studio
    2. Set an environment variable (From Advanced System Settings) named "COMPLUS_ZAPDISABLE" and give it the value 1
    3. In the folder where YourAssembly.dll is, you then need a .INI file called YourAssembly.ini that contains the text below:

    [.NET Framework Debugging Control]
    GenerateTrackingInfo=1
    AllowOptimize=0

    4. Try debugging again

    Thank you banoz for providing your reproduction!
    Jessica R
    0

Add comment

Please sign in to leave a comment.