代码触发了一个断点,但是我没有设置任何断点 [英] code triggered a breakpoint but I set no breakpoint at all

查看:517
本文介绍了代码触发了一个断点,但是我没有设置任何断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在MS Visual Studio 2015中运行了一个非常简单的程序,根本没有设置断点,但是输出为:

I was running a very simple program in MS visual studio 2015 and set NO breakpoint at all, but the output is:


XXXX .exe触发了一个断点。

XXXX.exe has triggered a breakpoint.

我根本没有设置任何断点。为什么会这样?

I did not set any breakpoint at all. Why would this happen? Thanks.

#include<iostream>

using namespace std;

int main() {
int a = 1;
int b = a + 1;

cout << "b is " << b << endl;

getchar();
return 1;
}

实际上,该代码在cpp.sh中有效,因此我相信它必须包含某些内容与visul工作室设置有关

Actually the code works in cpp.sh, so I believe it must have something to do with visul studio setting

更新:
我在这里发现了完全相同的问题:
https://software.intel.com/zh-cn/ forums / intel-visual-fortran-compiler-for-windows / topic / 590210#comment-1844444
我还安装了intel编译器。该代码在debug-x64模式下运行,但不在debug-x86模式下运行。但是,我无法在这两种模式下添加任何断点。

updates: I find the exact same problem here: https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/590210#comment-1844444 I also installed the intel compiler. The code runs in debug-x64 mode but not debug-x86 mode. However, I could not add any breakpoints in either mode.

推荐答案

我认为intel和MS Visual Studio之间仍然存在某些不兼容之处。我从Visual Studio卸载了英特尔的东西,现在它可以了。

I think there is still certain incompatibility between intel and MS visual studio. I uninstalled intel stuff from visual studio and now it works.

这篇关于代码触发了一个断点,但是我没有设置任何断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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