简体   繁体   中英

How to use NetBeans to debug C++ libraries not compiled with NetBeans?

I am using NetBeans 6.8 on Redhat Linux. Does anyone know how to configure NetBeans to debug (step into) libraries not compiled with NetBeans?

In my particular case, I'm trying to debug the VTK library which is built using cmake with the Debug flag set. I've written a C++ application that uses the shared libraries from VTK.

Any ideas? I'd tried the obvious things like adding the source locations to the project.

Note that with gdb I can debug the application and set breakpoints anywhere in VTK.

I found an article on NetBeans 5.5 on how to integrate GDB into your project: http://cnd.netbeans.org/docs/articles/debugging/Review_NikMolchanov/NetBeansC_C++DevelopmentPack5.5_Debugging.html

I realize that you mentioned 6.8 but since there have been no other answers it might help point you in the right direction at least.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM