Eclipse-CDT: How do I configure the debugger to stop on an exception?

前端 未结 2 1952
青春惊慌失措
青春惊慌失措 2021-02-05 03:45

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 d

相关标签:
2条回答
  • 2021-02-05 03:58

    The best I found is news.eclipse.tools.cdt: Re: Catching C++ exceptions at point of throw:

    Meanwhile, you can go at the GDB console in eclipse and type "catch throw", like you are did with gdb, 'til we find away to integrate this feature in CDT.

    0 讨论(0)
  • 2021-02-05 04:14

    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.

    0 讨论(0)
提交回复
热议问题