1

enter image description here

Hi

I tried so many solutions to fix this problem but none is working. Sometimes I can debug without any hesitation and sometimes it shows this as shown in the pic.

What is the best solution for this?

Thanks

enter image description here

Sam
  • 53
  • 2
  • 11
  • 1
    @ Rehaan, Disable the option "Require source files to exactly match the original version" under TOOLS->Options->Debugging->General, please also enable the Microsoft Symbols Server under TOOLS->Options->Debugging->Symbols. Debug it again. If you want to view the Exception code line, you could use the Exception throw under Debug->Exceptions. – Jack Zhai Feb 01 '17 at 04:40
  • any update? What about this issue in your side?:) – Jack Zhai Feb 03 '17 at 08:05
  • It is not working. still same. @JackZhai-MSFT – Sam Feb 06 '17 at 02:32
  • 1
    @ Rehaan, Could you share the detailed output messages from the Output window? Uncheck 'Enable address level debugging' and Check 'Enable Just My Code' and "use Manage/Unmanage mode"under TOOLS->Options->Debugging. Debug it again. – Jack Zhai Feb 06 '17 at 11:02
  • After I enable "Just my code" I got the error as shown above. Disabled again. https://i.stack.imgur.com/E1Kb8.png – Sam Feb 07 '17 at 02:11
  • 1
    if you enable "break when this exception is thrown", and then re-debug your app again, does it throw the exception in the specific code line? Can you share the main code or a simple sample? We need to resolve the exception firstly. – Jack Zhai Feb 07 '17 at 05:50
  • After enabling "Just my code" I haven't seen the error again. If it pops up again, I will do as you mentioned above and let you know. Thanks – Sam Feb 07 '17 at 10:02
  • 1
    You are welcome, Rehaan. If it works well, you could post the answer. If not, feel free to let me know, I will follow up it in time. Have a nice day:) – Jack Zhai Feb 07 '17 at 10:18
  • Try [this](https://stackoverflow.com/a/8341844/3058836) approach. – swartkatt Jan 03 '21 at 14:32

0 Answers0