Good C++ Debugging/IDE Environment for Linux?

I have a friend who is trying to make the switch to Linux, but is hung up on the apparent lack of debugging/IDE environments for C++, especially as they relate to template programming. He has been using visual studio for years and is maybe a little spoiled by their awesome IDE. Does anyone have any good suggestions for an environment where he can, under Linux, develop and debug with all of the usual things (Breakpoints, line highlighting for compilation errors, step in/over/out/etc, etc) that he’s accustomed to? Thanks!

C# in linux environment

I am curerntly working in C/C++ in unix environment and new to linux environment. I would like to learn about linux OS and learn next level of programming language as C# for my career. I decided to pu

error logging in c – linux environment

I have been reading about how to keep error/warning logs of a C program on Linux environment. Is it better to write the errno to a file as it is done here or is it better to use syslog or setlogmask s

Flex development on Linux, what’s a good free environment?

I would like to develop Adobe Flex applications using Linux and a free environment. I’d prefer a free as in freedom alternative, but as in beer would work as well. 😉 Are any of you developing Adobe

Accessing user defined environment variables in C program in linux?

I am new in linux.I have problem in accessing my defined environment varibales in C program. I have defined one variable in linux command terminal as follows: $ ExampleVar=Hi And in C program I am

Volatile in C and Cpp under linux environment [duplicate]

This question already has an answer here: Why is volatile needed in c? 13 answers I am writing program for ARM with Linux environment. its not a low level program, say app level Can you clarify

Auto generating sequence diagram for C++ code linux environment

Are there any eclipse plugin available to auto generate sequence diagram for C++ code running in the linux environment? Please let me know the details. Thanks.

Looking for a good mockup tool for C/C++ on Linux

I’m looking for a good mockup tool for C/C++ on Linux

Environment Variables in my own C Linux Shell?

I’m writing my own C Linux shell. But I have to get and set environment variables. I’ve had a little success using getenv(HOME) in my change directory part. How do you get and set environment variab

how to chdir in c program in Linux environment

I am new in c programming. How can I get in in Linux environment like /home/jobs/$ans/xxx/ while I have $ans is a user string I can’t chdir in c program. My script is below: #include <stdio.h> #

Linux/Unix environment variables

Where Linux/Unix environment variables are kept? How can I add my own environment variable and make it persistent, not only within currently running script?


Depends, Code::Blocks is good, Eclipse is very nice too, but you will need a very good computer. In my opinion the best choice iss gcc, gdb and ViM or Gedit.

Although many people think of it as a Java IDE, he could try NetBeans. I’ve used it on Windows for C and C++ development without a problem, and I know NetBeans is supported on Linux, so it would be worth a shot.

It looks like most of the features he wants are included in the C/C++ development toolkit, including integration with GDB, a profiler, and more.

How about Eclipse + CDT ?

I’ve used Eclipse for C/C++ and it’s pretty useful. It’s also used at ACM ICPC World Finals

I’d recommand Code::Blocks (but use a nighty build). It can be coupled with gdb to enable step by step debugging and all that stuff.

My buddies from work use Eclipse + Scons, they also use Valgrind(spelling?) for tracking memory leaks and such.

Visual Studio is good, indeed.

On the free side:

Qt Creator is getting quite good too, it’s worth a try. There are advantageous by-products coming from the Qt framework:

  • huge library – not only to build GUI applications but for other domains as well
  • portability on multiple platforms

A version 1.3 beta is available as a preview of the upcoming release but the current 1.2.1 is already all you need to manage projects.

Eclipse has already been mentioned, it’s a very good environment offering many plug-ins (Mylyn, SVN, …).

MonoDevelop somewhat supports C++ (more and more, I didn’t check the latest version).

About 7 years ago I used KDevelop that whas shipped with KDE. I found it quite good back than, and I hope it also improved with the time. I found it quite comparable to VC++ 6 at this time.

It alos contains Qt support, if you are need for some GUI toolkit.

Many of the IDE features you listed were debugger features. The ddd (Data Display Debugger) debugger is quite a nice GUI wrapper for gdb, allowing graphical representation of data structures, a non-crappy source listing window (ie. unlike the l command of gdb where you don’t get context), and also allows you to use any and all native gdb commands directly if desired.

I havn’t explored it personally, but Emacs has a C++ development addon that looks very much like a full IDE.

Have a look at CodeLite. Its available for Ubuntu and Fedora out of the box and even for Windows and Mac. So you have same IDE on different platforms.

We tried Eclipse and netbaens but left them due to their huge CPU and memory usage. We have a development server and all the developers connect to it via RDC. Thats why these IDEs miserably failed in our model.

So, we looked for some native IDE. Found CodeBlocks to be very good and super fast. We sort of settled on it but later found CodeLite and liked it better than CodeBlocks.

Not exactly an IDE but SublimeText 2/3 is available on Linux now. There may be a debugger plugin for it too, who knows.