Linux under Graphical Debugging tools: kdbg, DDD

Source: Internet
Author: User

Debugging in Linux is really a very troublesome thing, debugging with GDB is not convenient, not in windows with VS cool, the main reason is because GDB is the command line form, in fact, under Linux there are some GDB-based graphical debugging tools.


1. kdbg

Under Ubuntu Direct sudo apt-get install kdbg can be installed.

If the MNG error 11:function is invalid on this point after starting up; Chunk Mhdr; Subcode 0:0 error, then delete/usr/share/kde4/apps/kdbg/icons/hicolor/22x22/actions/pulse.mng this file is good.

The interface is relatively friendly. The debugging method is simple:

1. First g++-G file.cpp or g++--debug file.cpp get the file a.out

2. Run kdbg Select file->excutable and then select A.out This file, the debug code will be loaded automatically.

3. Mouse point debugging Code The leftmost point in the left margin, turn red to set the breakpoint,

4. Press F5 to start debugging F10 step F6 jump out of F7 to mouse F8 follow up. View->locals can see variable data.


2. ddd

Similar to kdbg, select File-program to load the executable file.

Linux Form Debug Tool: Kdbg, DDD

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.