用 Visual Studio 2017 (以下简称 VS 2017) 运行程序,程序出错后,只是进入中断模式,仅显示 The application is in break mode
而没有像 VS 2013 那样告诉你,程序为什么报错,出错的代码在哪里,具体如下图:
Visual Studio 2017 取消 break mode

 

这对调试程序没有任何帮助,但只需要进行简单配置,就可以符合我们的要求:

在 VS 2017 菜单栏中: Debug -> Options -> Debugging -> General -> 取消 Enable Just My Code 选项:

Visual Studio 2017 取消 break mode

 

取消后,再运行程序,就能够知道程序出错的原因,以及出错的代码行数等信息了:

Visual Studio 2017 取消 break mode

 

 参考链接:https://blog.csdn.net/zhouyingge1104/article/details/79778223

相关文章:

  • 2021-12-18
  • 2022-02-02
  • 2022-03-01
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2021-06-09
  • 2021-12-07
猜你喜欢
  • 2022-01-29
  • 2022-02-23
  • 2021-06-14
  • 2021-09-04
  • 2021-09-04
  • 2021-10-08
相关资源
相似解决方案