简体   繁体   English

NetBeans如何在C ++项目上打破异常

[英]Netbeans how to break on exception on c++ project

In Netbeans 8, I'm debugging a C++ project. 在Netbeans 8中,我正在调试一个C ++项目。 But I dont seem to find where to config gdb to "break on exceptions". 但是我似乎没有找到在哪里配置gdb以“打破异常”。

I go to main menu "Tools" -> "Options" -> "C/C++" -> tab "Debugging Options". 我进入主菜单“工具”->“选项”->“ C / C ++”->选项卡“调试选项”。 Nothing found. 没有发现。 Could this be a bug? 这可能是错误吗? (The options dialog is different than for a Java project). (选项对话框与Java项目不同)。

(In Eclipse CDT, when debugging, there's a way to access the gdb session to manually issue a "catch throw", there is no such thing in Netbeans). (在Eclipse CDT中,当进行调试时,有一种方法可以访问gdb会话来手动发出“ catch throw”,但Netbeans中没有这样的东西)。

Naa, found it, in Menu Windows -> Debugging -> Debugging Console. Naa在菜单Windows->调试->调试控制台中找到它。

Then you can issue the "catch throw" there. 然后,您可以在此处发出“接球”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM