DebugBreak不打破 [英] DebugBreak not breaking

查看:127
本文介绍了DebugBreak不打破的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C ++写一个类,我不能使用F5调试。代码将从另一个将调用它的服务运行。
在过去,我使用了 __ debugbreak(),当我有一个窗口告诉我一个异常被选中调试它。

I'm writing a class in C++ that I cannot debug by using F5. The code will run from another "service" that will invoke it. In the past I've used __debugbreak() and when I got a window telling me that an exception was thrown selected to debug it.

最近我更新到Windows 7,它继续工作了一段时间。

Recently I've updated to windows 7 and it kept working for a while.

今天,当我试图调试一段代码而不是显示常规对话框,告诉我VSTestHost已停止工作,并使我能够调试应用程序我有一个不同的对话框,建议我将数据发送到微软进行分析。

Today when I've tried to debug a piece of my code instead of shown the regular dialog that tells me that VSTestHost has stopped working and enable me to to debug the application I got a different dialog suggesting I send the data to microsoft for analysis.

有谁知道如何解决这个问题,所以我可以调试我的代码?

Does anyone knows how can I fix this issue so I'll be able to debug my code?

推荐答案

最后我找到了问题的原因。
这是Vista / Win7原因:

Finally I found the cause of the issue. It's a Vista/Win7 cause:


  1. 打开操作中心控制

  2. Goto

  3. 选择每次出现问题时,在检查解决方案之前询问我

虽然这是更多的IT解决方案/问题,我一直困扰着这个问题,想与其他开发人员遇到这个问题的解决方案。

Although this is more of IT solution/question I've been plagued with this problem all day and wanted to share the solution with other developers who encounter this problem.

这篇关于DebugBreak不打破的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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