Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Debugging and testing libraries
Debugging and testing libraries [message #748079] Mon, 24 October 2011 09:23 Go to next message
Eclipse UserFriend
I created a shared library project in Eclipse and now want to test and debug it. Till I find out a better way, I'm creating the test executable that uses my shared library, outside eclipse and debugging it using gdb.

Is there any way that I can debug my library within eclipse by specifying the test executable, or is there a better approach to debugging libraries in Eclipse altogether?

Abhishek
Re: Debugging and testing libraries [message #749852 is a reply to message #748079] Tue, 25 October 2011 09:32 Go to previous messageGo to next message
Eclipse UserFriend
Found the solution after figuring out the correct keywords to be used in google Smile

Run->Debug Configurations->C/C++ Application (project to be debugged should be open).

What remains to be understood is how I can have two executables launched and debugged for example in a multiprocess application, where both the executables use the shared library.
Re: Debugging and testing libraries [message #753675 is a reply to message #749852] Fri, 28 October 2011 06:04 Go to previous messageGo to next message
Eclipse UserFriend
What kind of debugging project did you choose ?

"C/C++ Application" ?
Re: Debugging and testing libraries [message #753687 is a reply to message #753675] Fri, 28 October 2011 07:11 Go to previous message
Eclipse UserFriend
As a matter of fact I'm using multiple debug configurations, one C/C++ Application and another C/C++ Attach to Application. I also found out that as a consequence of wiki.ubuntu.com/SecurityTeam/Roadmap/KernelHardening#ptrace_Protection it is not trivial for me to debug multiple processes as I run Kubuntu 11.10. I had to follow an equivalent of the workaround mentioned over there to be able to finally get it right.
Hopefully someone someday will find this useful.
Previous Topic:Debug facilities documetation
Next Topic:Make CDT load an existing makefile
Goto Forum:
  


Current Time: Wed Jul 30 17:50:16 EDT 2025

Powered by FUDForum. Page generated in 0.05858 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top