[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6. Debugging with RHGDB

In addition to RHIDE, which has an integrated debugger, there is also a stand-alone debugger called RHGDB. (The name comes from my initials and GDB)

RHGDB has the same abilities as RHIDE for debugging your program. But it has no editor. The source files are shown in read only windows where you can move the cursor and other things (except editing) like in RHIDE.

The menu tree is analog of RHIDE's but (of course) it has not all the menu entries of RHIDE, because RHGDB should be used only for debugging and nothing else.

I have written it to debug DJGPP programs, for which there is no RHIDE project file available but the program has debugging information and, if you are short of memory, it is much smaller than RHIDE.

The syntax for using RHGDB is very simple. Run it with your program as the first argument followed by any argument, which should be passed to your program.

RHGDB saves and reads the options from files with the suffix `.rgd'. This is done automatically when you run RHGDB with your program as argument by searching a file with the same basename of your program and the suffix `.rgd' and in this file the options are also automatically stored, when you exit RHGDB.

Alternatively you can also save/read the options from within RHIDE by selecting the corresponding menu entries from the Options menu.

To use the the "Dual display debugging" feature of RHGDB you must give on commandline the `-D' switch.


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by Robert Hoehne on February, 16 2003 using texi2html