开发者

Where can C debugger tutorials be found? [closed]

开发者 https://www.devze.com 2022-12-15 21:27 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

开发者_Go百科

Closed 9 years ago.

Improve this question

Is there any tutorial about using debuggers, when doing C programming on Linux (console mode)?


GDB tutorial.


if you want a GUI then try Nemiver it's very nice GUI for GDB

oops !!! sorry i didn't see you have mentioned console mode. Anyway try GDB.

from console type: info gdb will give you more about gdb


Do you have a particular debugger in mind, or are you just looking for a general introduction to debuggers?

For Linux debugging, Checkers is almost certainly right, you will be using GDB, and that is a good tutorial (but dont let it stop you from googling ;-) http://www.google.com.sg/search?hl=en&source=hp&q=gdb+tutorial

I don't know how you are developing your code, but I would highly recommend using the Eclipse IDE *use CDT plugin, since you are developing C) - http://www.eclipse.org/cdt/

Eclipse is an excellent free IDE and is practically a de facto standard among professionals. You can edit your code and also step through through it in the debugger Eclipse, but Eclipse also supports many, many other plugins which will be of great use to you:

DoxyGen for documenting your code, Splint for static code analysis, catching problems which the compiler does not, CppUnit for automated testing, BugZilla (etc) for problem reporting, CVS, Subversion, etc, for version control ... you get the picture.

Since we are talking of debuggers, I admit that I can't yet get Eclipse to support DDD, and if you don't know why you want DDD, a picture is worth a thousand words .. http://www.gnu.org/software/ddd/all.png

See that lovely picture in the top pane? If you use pointers and linked structures, then DDD is indispensable, IMO.

Don't forget that arguably the best debugging is not done in the debugger, but in code review, static code analysis (http://www.splint.org/ http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page), etc

0

精彩评论

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