Upgrade to Visual Studio 2015 and now can't hit break points in debugging

前端 未结 18 1450
北恋
北恋 2020-12-29 21:03

I have a multi-project solution that I was building in Visual Studio 2013 and it was working fine but now that I have upgraded to Visual Studio 2015 I can no longer hit brea

18条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-29 21:50

    I had a similar problem, when I created a new build configuration. After hunting around settings in VS2015, I noticed that there were no *.pdb files in my build output. Obviously, debugging would not work if there were *.pdb files.

    The fix for me was to go into every project's properties -> 'build' page -> click the "advanced" button at the bottom of the page -> In the dialog's 'Output' section, I set "debug info" to equal "full".

    Basically, I created a new solution and project and copied all the build properties into the solution that the debugger was not stopping at break points anymore. In addition to the setting above, I also changed the following setting to match the default debug settings:

    • I set on the same advanced page "Internal Compiler Error Reporting" to "prompt"
    • In the main 'build' page, I checked in the 'general' section "Define DEBUG constant" and "Define TRACE constant"

提交回复
热议问题