Many people are not accustomed to the GDB command-line debugging methods, especially the use of Eclipse, VS2010, codeblocks the kind of mouse hover display variable value function, it is very convenient to feel. Another comparison gdb to use the command to display the variable value, want to see the source also use List command, for that kind of tune for a half-day or not see where the bug in the case, it is a day dog.
I have tried a variety of graphical debugging tools, Gdb-tui is not good to use, in addition to add a display code box outside of the new features. DDD This thing can also, especially its visual display data structure of the function is simply to explode, this software we next post. This article is about the Insight installation.
Insight is not very well known, but it really works, it was developed by Redhat engineers. Red Hat has done another big thing.
First go to https://www.sourceware.org/insight/downloads.php here to download the software, note download version 6.8-1.
After decompression
1, run./configure--disable-werror
The "--disable-werror" option means that you are warned not to stop compiling, or make will error.
2. Then make
This step if the error, the hint is TK3D.O errors, that is because the lack of dependent packages. Install tk.i686 tcl.i686 libx11-devel.i686 with Yum
3. Make install
This step requires root access
And then it's loaded.
The use is also very simple, run the command Insight a.out on the line.
Here's a look at the fun for everyone.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/F7/wKiom1Xw6a6QRzkkAAF60ExCBGU307.jpg "style=" float: none; "title=" 2015-09-10_095429.png "alt=" Wkiom1xw6a6qrzkkaaf60excbgu307.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/F3/wKioL1Xw69uzf548AAESCNRHLRA660.jpg "style=" float: none; "title=" 2015-09-10_095437.png "alt=" Wkiol1xw69uzf548aaescnrhlra660.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/F7/wKiom1Xw6a7glXkAAACUKpBs3wA369.jpg "style=" float: none; "title=" 2015-09-10_095758.png "alt=" Wkiom1xw6a7glxkaaacukpbs3wa369.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/F3/wKioL1Xw69uiasWoAADh_XZvWqU867.jpg "style=" float: none; "title=" 2015-09-10_095836.png "alt=" Wkiol1xw69uiaswoaadh_xzvwqu867.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/F7/wKiom1Xw6a6SFHjZAADi9IgCeYk499.jpg "style=" float: none; "title=" 2015-09-10_095924.png "alt=" Wkiom1xw6a6sfhjzaadi9igceyk499.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/F3/wKioL1Xw69yCFlyTAAJuY0C-ppQ814.jpg "style=" float: none; "title=" 2015-09-10_095955.png "alt=" Wkiol1xw69ycflytaajuy0c-ppq814.jpg "/>
This article is from the "Linux Kernel Developer" blog, so be sure to keep this source http://mirage1993.blog.51cto.com/2709744/1693355
Linux C language graphical debugging tool Redhat Insight, the Ultimate debugging experience!