开发者

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.

Debugging C++ in Linux

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


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?


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.


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.


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.


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.


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


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜