Eclipse-CDT:如何将调试器配置为在异常时停止? [英] Eclipse-CDT: How do I configure the debugger to stop on an exception?

查看:238
本文介绍了Eclipse-CDT:如何将调试器配置为在异常时停止?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个GDB问题..但是我想在调试器中运行我的应用程序,并在抛出异常时调试器断开,所以我可以看到代码是什么,它在那时做什么。



我经常在Visual Studio中使用Debug - > Exceptions对话框,检查我想停止的异常类型旁边的'Thrown'列。 / p>


  • Alex


解决方案

在eclipse中可以得到相当于gdb catchpoints:



从断点视图,调用操作(在最大化按钮附近向下指向的小三角形)添加事件断点(C / C ++) - >抛出异常。


This might be a GDB question.. but I'd like to run my app in the debugger and have the debugger break when an exception is thrown, so I can see where the code is and what its doing at that time.

I do this often in Visual Studio using the Debug -> Exceptions dialog, checking the 'Thrown' column beside the type of exceptions I'd like to stop on.

  • Alex

解决方案

You can get the equivalent of gdb catchpoints in eclipse by:

From breakpoints view, invoke action(small triangle pointing downwards near the maximize button) -> Add Event Breakpoint (C/C++) -> Exception Thrown.

这篇关于Eclipse-CDT:如何将调试器配置为在异常时停止?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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