I study C with the "C programming language", 2nd edition, as well as each exercise.
Do I need to know the assembly to debug C programs that I wrote as solutions for book exercises?
Also, which debugger do you recommend?
You do not need to know the build for a C program, including debugging. However, if you know the assembly, C starts to make a lot of sense; it really helps to have some assembly concepts (preferably some concepts on several different architectures such as x86 and ARM), and not just for debugging.
, . MSV++, IDE, .
, , C.
, , - , IDE, . Windows Microsoft Visual Studio ( ). Eclipse - , .
, gdb, , GUI- .
, , , . , .
, . printf() .
printf()
, asm , , , ... , , GDB, , , .
GCC -g2 -g3, GDB. GDB http://cs.baylor.edu/~donahoo/tools/gdb/tutorial.html, http://www.delorie.com/gnu/docs/gdb/gdb_toc.html
-g2
-g3
, . ( -g GCC) (/Z MSVC).
-g
/Z
( ), . , .
, . , , () , , . , , .
No no. Microsoft Visual Studio has a good debugger. Other options are Code :: Blocks or Eclipse .