Visual Studio is not loading modules when attaching to process

后端 未结 2 1571
梦谈多话
梦谈多话 2020-12-17 19:28

I have a C++ application. When i press F5 in visual studio application starts and i can debug it. But when I run application from windows explorer and then attach this proce

相关标签:
2条回答
  • 2020-12-17 19:31

    It sounds like the executable code that you are debugging (F5) is not the same as the one you are running from explorer. Check the date of the executable you are running. Also, it may be picking up a different version of DLL if you are using them. Try renaming one of your DLL files and then running from explorer. Use depends.exe to see which modules are being loaded.

    0 讨论(0)
  • 2020-12-17 19:44

    Verify the code type Visual Studio is configured to load symbols. Attach To Process dialog has Select Code Type option to specify which symbols to load. Here you can select Managed symbols and/or Native symbols.

    Also the assemblies should be of same version.

    0 讨论(0)
提交回复
热议问题