Mail Archives: djgpp/1997/02/19/12:39:32
On Wed, 19 Feb 1997, Alan Wilson wrote:
> I'm fairly new to DJGPP and programming and I've seen several posts
> regarding something called a debugger. What is a debugger? And what does it
> do?
Debugger lets you set breakpoints in your program (where the program will
stop), run it line by line, examine and set values of variables, and much
more. When your program doesn't work as expected or crashes, a debugger
is an invaluable tool to find the bugs which cause this.
> Does DJGPP come with one? Rhide? EMACS?
DJGPP comes with 5 different debuggers. RHIDE has an integrated debugger,
yes. (Emacs has a debugger interface, but it doesn't work on MSDOS.) Read
chapter 12 and section 4.5 of the DJGPP FAQ list (available as
v2/faq210b.zip from the same place you get DJGPP) for more info about the
debuggers that come with DJGPP.
> Is it necessary to use one?
That's up to you. You can always use `printf' debugging, but some things
are very difficult to see without a debugger.
- Raw text -