断点无法绑定 - Visual Studio 2015 [英] Breakpoint Failed to Bind - Visual Studio 2015

查看:24
本文介绍了断点无法绑定 - Visual Studio 2015的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从 Visual Studio 2013 升级到 2015,现在遇到断点问题.

I just upgraded from Visual Studio 2013 to 2015 and now I am having trouble with breakpoints.

在断点实际起作用的情况下是命中还是未命中,如果我在调试时设置了一个,则会出现错误:

It's a hit or a miss where break points will actually work and if I set one while debugging I get the error:

断点绑定失败.

任何帮助将不胜感激.我准备放弃 2015 并回去.

Any help would be appreciated. I am about ready to give up on 2015 and go back.

推荐答案

我遇到了同样的问题,但有不同的解决方案.请注意,我已更新到 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.

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

这篇关于断点无法绑定 - Visual Studio 2015的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆