Showing posts with label CodeLite. Show all posts
Showing posts with label CodeLite. Show all posts

Saturday, October 22, 2011

best debugging tools I used on ubuntu for c/c++

During the webkit development I was like "swarg" means "heaven" while working with windows machines, I am not a lover/follower of windows but I think the reason for popularity of windows for developers is just because it has a great tool Visual Studio. As time passed due to ease of cross-platform building and freeing our machines from heavy load of Visual Studio I decided to switch to ubuntu.

And the very next problem came to me was how to debug code? I know the gdb lovers would hate this but for newbies ans VS lovers its nightmare to handle such huge code of webkit from command line.

But you cant skip gdb when you are on linux. So what was the option..? Well answer was simple and nit.

Thanks to gui based IDEs with gdb in backend.
CodeLite is cross-platform and an open source IDE for c and c++ programming. It is available on ubuntu software center or you can download package from here.


Qt-Creator is also cross-platform IDE. It is developer for qt developer needs but you can import your other c++ and java project inside it and debug them easily by setting project properties. Auto complete feature and other shortcuts to symbol definition, declarations are just out of the box.


But personally I would recommend QtCreator because of its Simple Interface and importantly if you have low configuration codelite is not for you. Codelite take almost an half an hour to add files to webkit project.

Well if anyone have issues setting up projects with codelite or qt-creator let me know. BTW I will publish steps for that soon.

Note:: to be able to debug the core with any of these you need to launch codelite/qt-creator with sudo permission.