且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

断点无法绑定 - Visual Studio 2015

更新时间:2023-02-27 13:16:19

我遇到了同样的问题,但有不同的解决方案.请注意,我已更新到 VS 2015 Update 1,但问题仍然存在.

I had the same problem but a different solution. Please note I updated to VS 2015 Update 1 and the problem is still there.

在以前版本的 VS 中,启动调试会自动触发调试模式下的构建.但在 VS2015 中却没有.

In previous edition of VS starting debug automatically triggered a build in debug mode. But with VS2015 it does not.

因此,如果您的上次构建处于发布模式,并且您尝试调试,则断点将不起作用.

So if your last build was in release mode, and you try debugging, breakpoint won't work.

您必须手动先在调试模式下构建,然后再开始调试.