This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I'm busy working with PortAudio and I've come across a problem when trying to debug in NetBeans (C++). When running the debugger the system freezes on Pa_Initialize(). It works fine in gdb / Xcode. I've tried compiling and installing portaudio with the "--enable-mac-debug" option and without. Setup is as follows: OS - Mac OSX 10.6.4 NetBeans? - 6.9 PortAudio - pa_snapshot.tgz created Thursday, 08-Jul-2010 21:37:03 PDT - I also tried the stable build but that didn't compile on Mac OS 10.6.4. To reproduce the problem, create an empty project with Pa_Intitalize() in the main function. Then run the program in debug mode in NetBeans. Note that the program works fine when running in gdb / Xcode. Example project below. I initially checked with the PortAudio people but they think it may be an issue with NetBeans. Considering the there is a post at http://wiki.netbeans.org/FaqCplusPlusPackMacDebugging , I thought I should check if you have any ideas? gdb --version GNU gdb 6.3.50-20050815 (Apple version gdb-1469) (Wed May 5 04:36:56 UTC 2010) Thanks! --------------- Example main.cpp: #include <portaudio.h> int main(int argc, char** argb) { Pa_Initialize(); return 0; }
Created attachment 101010 [details] Example project which fails debuggin I have the same problem when debugging a wxWidgets application. I've attached an example project. The program runs fine but if you try debug then it just freezes.
could you please try to debug it in console gdb to assure that this is IDE issue?
I have tried the console gdb, which works fine. It seems to happen for me with any external library that is linked in. I haven't tried on Netbeans 7 beta yet. I'll have to do that and let you know if the new version has fixed it.
yes, please try the latest 7.0 dev, debugger changed significantly there. Also attach gdb log from there (main menu/debugging/debugger console)
please try the latest dev: http://bits.netbeans.org/download/trunk/nightly/latest/ and attach gdb log (main menu/windows/debugging/debugger console) here.