27 September 2008

GDB 6.8 in NetBeans 6.1 Hangs

When trying to debug a C++ program in NetBeans 6.1 using MinGW gdb 6.8, gdb would hang when starting (and cause NetBeans to hang as well). My workaround was to restart NetBeans, open the debug window (see Windows / Debug menu item) and delete all breakpoints.

This thread gdb 6.8.0 debug process in netbeans 6.1 hangs? shows where to find gdb's log file to help solve the problem (in Vista, it's C:\Users\<user>\AppData\Local\Temp\gdb-cmdsX.log).