delorie.com/djgpp/faq/debugging/basic.html   search  
How do I debug my programs?

First, remember to use the -g switch when you compile. This puts debugging information into your executable. Then, to debug the program, use a command line like this:

  go32 -d edebug32 myprog
edebug32 is the external debugger. See the file edebug32.doc for information on the debugger commands. Note: if you are running in a DPMI environment, you must use ed32-dpmi instead of edebug32. go32 normally searches relative to the current directory, then from it's own directory, then the PATH, for the external debugger program.

You can use alternative debuggers:

Both fsdb and gdb have separate DPMI and non-DPMI versions. You invoke any debugger like above, like this:
  go32 -d debugger-name program args...

  webmaster     delorie software   privacy  
  Copyright © 1995     Updated Feb 1995