smatter
smatter

Reputation: 29218

Debugging C++ in Linux

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 :()

Upvotes: 4

Views: 1772

Answers (8)

stucash
stucash

Reputation: 1268

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

Upvotes: 0

Charles Ray
Charles Ray

Reputation: 480

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

Upvotes: 0

cmannett85
cmannett85

Reputation: 22366

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.

Upvotes: 2

Nemanja Trifunovic
Nemanja Trifunovic

Reputation: 24561

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.

Upvotes: 0

peoro
peoro

Reputation: 26060

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.

Upvotes: 1

kalev
kalev

Reputation: 1925

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.

Upvotes: 3

user2100815
user2100815

Reputation:

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?

Upvotes: 7

Nick Strupat
Nick Strupat

Reputation: 5063

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

Upvotes: -2

Related Questions