Making Simple Use of the Debugger. Overview

The Intel® IDB supports DBX and GDB modes. By default, IDB operates like the DBX debugger. In the GDB mode, Intel IDB operates like the GNU* Debugger, GDB*. See the Starting the Debugger section to get to know how to launch the debugger in the required mode.

You look for a bug by doing the following:

  1. Find a repeatable reproducer of the bug (the simpler the reproducer is, the easier the next steps will be).
  2. Prepare your program for debugging.
  3. Start the debugger.
Give commands to the debugger.
  1. Do whatever it takes to reproduce the bug, so that the breakpoints will stop the process close to where the bug has caused something detectably wrong to happen.
  2. Look around to determine the location of the bug: