Universe Strongest Debugger DDD (Data Display Debugger)

Source: Internet
Author: User

Linux Main debugger is GDB, but it is a pure command line interface, debugging is not convenient, I need more powerful power. After experimenting with a variety of tools, I believe I found it, yes, that's it--the universe's strongest debugger--ddd. DDD Introduction

DDD Full name Data Display Debugger, when I first saw it, its interface really let me take a surprise, so shabby, so weird, I even want to delete it immediately, but when I see its powerful function, I was deeply shocked, so elegant, so unruly, I suddenly thought of a word in my mind to describe it--sharp!

Yes, it is so sharp, it is the best graphical front-end of GDB, it inherits all of GDB's functions, it also joins the data structure visualization capabilities, what one-dimensional two-dimensional stack array, binary three-fork N-Tree, DDD All can be displayed graphically.

Young man, are you still worried about debugging, you still write for the red and black tree is not right and frustrated, if you really encounter such a problem, then I think DDD must be suitable for you.

It is subtle and deep, it is meaningful and restrained, it is not found on Baidu how much information, it is so low-key, so lonely, it is waiting for you to find, to use, to shock the world, to pick up its edge--the disdain of the warlords!

DDD Installation

Well, I think you must be tired of saying so, let's take a look at the installation of DDD. DDD can be downloaded from the official website.

Download Unzip I will not say. Install the dependency package before compiling, my system is CentOS 6.4, using the Yum Package Manager.

Yum install openmotif.i686 ncurses-devel.i686 openmotif-devel.i686 gdb.i686

It was developed at the time of the GCC 3.x, now most of the system is GCC 4.4, do not tell me that you are still using the 01-year machine. For this reason, it is necessary to modify a place to compile successfully, which is also the official recommended way of modification.

Edit Ddd/strclass. c file, add # include <cstdio> in header file declaration

And then it's going to be a good run.

./configuremakesudo Make Install

Once the installation is complete, the command ddd can be opened.

Change the DDD Font

Just opened the DDD interface you might think so, the font is so small, it seems I need to upgrade my eyes to titanium.

Let's teach you to set up DDD fonts. DDD does not seem to recognize the various system fonts within the/usr/share/fonts/and can only be manually adjusted.

Yum Install xorg-x11-apps-7.7-6.el6 Xorg-x11-fonts-misc

These two packages must be installed, the missing front will cause DDD to not be able to change the font and size, because this package has a tool called Xfontsel, which is necessary for DDD to adjust the font. The lack of the latter will result in a small adjustable range of ddd font size, because only two sizes allow you to choose.

Open the DDD Font selection page, Edit => Preferences => Fonts Click Browse to pop up the Xfontsel menu, select the font fmly choose the fixed font, PTSZ to 230, as long as you change these two. You can change the default font, Variable font, and so on. Then restart DDD, the world is changing instantly, the font is not big enough? Then the DDD full screen, how, is not never feel the debug program is so happy.

Use

Take a look at some of the pictures you've been feeling. (The figure of DDD Xeon is put in the last section)  650) this.width=650; "Src=" http://www.gnu.org/software/ddd/manual/html_mono/PICS/ Ddd-display.jpg "alt=" Creating single displays "style=" margin:0px;padding:0px;border:0px; "/> 650" this.width=650, "src=" Http://www.gnu.org/software/ddd/manual/html_mono/PICS/ddd-select-display.jpg "alt=" Selecting displays "style=" margin:0px;padding:0px;border:0px; "/> 650" this.width=650; "src=" http:// Www.gnu.org/software/ddd/manual/html_mono/PICS/ddd-hide-display.jpg "alt=" Showing and Hiding Details "style=" margin : 0px;padding:0px;border:0px; "/> 650) this.width=650;" Src= "Http://www.gnu.org/software/ddd/manual/html_ Mono/pics/ddd-rotate-display.jpg "alt=" rotating displays "style=" margin:0px;padding:0px;border:0px; "/>  650) this.width=650; "src=" http://www.gnu.org/software/ddd/manual/html_mono/PICS/ddd-locals.jpg "alt=" Displaying Local Variables "style=" margin:0px;padding:0px;border:0px; "/> 650" this.width=650; "src=" http://www.gnu.orG/software/ddd/manual/html_mono/pics/ddd-clusters.jpg "alt=" clustering Displays "style=" margin:0px;padding:0px; border:0px; "/> 650" this.width=650; "src=" http://www.gnu.org/software/ddd/manual/html_mono/PICS/ Ddd-edit-displays.jpg "alt=" Editing all displays "style=" margin:0px;padding:0px;border:0px; "/> 650" this.width=650; "src=" http://www.gnu.org/software/ddd/manual/html_mono/PICS/ddd-aliases.jpg "alt=" Shared Structures "style=" margin:0px;padding:0px;border:0px; "/> 650" this.width=650; "src=" http://www.gnu.org/ Software/ddd/manual/html_mono/pics/ddd-layout.jpg "alt=" Automatic layout "style=" margin:0px;padding:0px;border:0 px; "/> 650) this.width=650;" Src= "http://www.gnu.org/software/ddd/manual/html_mono/PICS/ Ddd-print-output.jpg "alt=" Printing the Graph "style=" margin:0px;padding:0px;border:0px; "/>

You think this is over?

DDD strength proves that it is the strongest debugger in the universe. look at the picture! 650) this.width=650; "src=" Http://www.gnu.org/software/ddd/manual/html_mono/PICS/ddd-plots.jpg "alt=" Changing the Plot appearance "style=" margin:0px;padding:0px;border:0px; "/>

Conclusion

ddd--let the world have no hard-tuning program

Sharp!



This article is from the "Linux Kernel Developer" blog, so be sure to keep this source http://mirage1993.blog.51cto.com/2709744/1750756

Universe Strongest Debugger DDD (Data Display Debugger)

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.