Break when C++ exception is thrown

CodeLite installation/troubleshooting forum
nezos
CodeLite Veteran
Posts: 59
Joined: Wed Dec 31, 2014 6:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Break when C++ exception is thrown

Post by nezos »

At http://codelite.org/LiteEditor/DebuggerSettings, it says that this option will fail for some versions of gdb, on some platforms.

Does this work for anyone in Windows? Mingw64?

When selecting this option gdborig crashes. I am using Mingw64 4.9.2 with gdb 7.8.1.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Break when C++ exception is thrown

Post by eranif »

Basically, what this option does is passing the command "catch throw" command to gdb
Which is OS dependent.

If your gdb crashes, you could try this (Windows / MinGW ):
settings->gdb settings->startup commands
and add this :

Code: Select all

break __cxa_throw
Tried this on simple hello-world app and it worked

Eran
Make sure you have read the HOW TO POST thread
Post Reply