My understanding is that debgu50 only works with C, not C++. But if you run with -gddb, then you might be able to use gdb to debug.