Hello,
I am experiencing a problem debugging C++ Exceptions. From reading through the post, this is an old subject from what I have read and was fixed, but ...
CodeBlocks is not catching C++ Exceptions properly. My Environment is the following ...
Fedora 14 (x86_x64)
Code::Blocks - Aug 30 2010, 10:53:58 - wx2.8.11 (Linux, unicode) - 64 bit
gcc-c++-4.5.1-4.fc14 (x86_64)
gdb-7.2.51.fc14 (x86_64)
and I do have Catch C++ Exceptions turned on in the Debugger Settings
Are there any Debugger initialization commands?
Here is a simple example ...
#include <iostream>
using namespace std;
int main () {
try {
throw 20;
} catch (int e) {
cout << "Just testing ... " << e << endl;
}
return 0;
}
I set the break point on the cout and when the exception is thrown, CodeBlocks appears to hang. If I set my cursor on the cout line and click on "run to cursor", CodeBlocks will stop on the cout line.
I have tried the same code in NetBeans and Netbeans stops on the break point so the problem is not gdb.
Am I missing anything? Is this still a problem with CodeBlocks? I like CodeBlocks and do not want to switch back to Netbeans but ...
Thank you in advance for any help you can provide!