4

After using Visual Studio for a week, I find CodeBlocks and other IDEs in Linux far inferior. I don't know if I am missing something, but I would love to have an IDE like VS in Linux. I have tried gdb, but I find it difficult to use. For instance, is there anything in Linux that can inspect values of a linked list like how Visual Studio shows.

enter image description here

I need to try out DDD. (the interface looks so 1980s :()

softwarematter
  • 28,015
  • 64
  • 169
  • 263

8 Answers8

7

Yes, the Data Display Debugger, or DDD, displays data structures graphically while debugging. Having said that, if you are writing your own linked list class in C++, you are not really taking full advantage of the language. Why not use the already fully-debugged std::list?

  • 3
    I got to say I don't find DDD as intuitive as Visual Studios. Not gone through the manual - but didn't need to for VS. (I do not like saying this...) – Tom May 06 '11 at 16:38
  • 3
    @Tom - don't feel bad saying it. Everyone privately thinks it but no one wants to talk about it. – Duck May 06 '11 at 17:16
  • The last time I used ddd, it was so buggy that I just learned gdb command line interface and never looked at ddd again. – Nemanja Trifunovic May 06 '11 at 17:24
3

Nemiver is a standalone graphical debugger for C and C++. It is actively maintained and has lots of features a modern debugger should have: setting breakpoints, watchpoints, stepping through code, inspecting memory and registers, tooltips showing contents of variables, integrated disassembler, source files are displayed with syntax highlighting, and so on.

kalev
  • 1,925
  • 1
  • 15
  • 12
  • How well does it handle visualizing STL containers? – genpfault May 06 '11 at 18:13
  • 1
    Nemiver's next release is going to have support for pretty-printing standard STL containers. See the latest status report: https://mail.gnome.org/archives/nemiver-list/2011-March/msg00001.html – kalev May 06 '11 at 20:00
  • Interesting. It seems like a good start. Is there a manual somewhere? How does it handle threads? Is there a way to open a watch window? – Duck May 07 '11 at 15:59
2

Surprised no on-ones mentioned Eclipse with CDT. Having used VS for years before migrating to Linux, I found it to be just as competent.

cmannett85
  • 21,725
  • 8
  • 76
  • 119
1

I'd suggest you to check out KDevelop and Qt Creator.

They've got a graphical debugger (it's just a GDB IDE, just like DDD) which lets you surf through class fields and pointers just like in your example.

peoro
  • 25,562
  • 20
  • 98
  • 150
0

Now You just need Clion from JetBrain, more productivity and easy debugging.

stucash
  • 1,078
  • 1
  • 12
  • 23
0

The shortest possible answer is: yes there are IDE's that work on Linux, but I have never seen anything that comes close to Visual Studio when it comes to debugging.

Nemanja Trifunovic
  • 24,346
  • 3
  • 50
  • 88
0

Try Netbeans with the C++ plugin. I find it very useful.

Charles Ray
  • 470
  • 1
  • 5
  • 16
-2

Check out MonoDevelop as well. It is designed to be very similar to Visual Studio.

Nick Strupat
  • 4,928
  • 4
  • 44
  • 56