Oracle® Solaris Studio 12.4: dbxtool Tutorial

Exit Print View

Updated: October 2014
 
 

Using Breakpoints and Stepping

Breakpoints enable you to stop a program before the manifestation of a bug and step through the code in the hope of discovering what went wrong.

If you have not already done so, undock the Output window.

You ran the program from the command line earlier. Reproduce the bug by running the program in dbxtool.

  1. Click the Restart button image:Restart button on the toolbar or type run in the Debugger Console window.

  2. Press Return in the Debugger Console window.

    An alert box provides information about the SEGV.

    image:Signal Caught alert window displaying SEGV
  3. In the alert box, click Discard and Pause.

    The Editor window once again highlights the call to strcmp() in Interp::find().

  4. Click the Make Caller Current button image:Make Caller Current button in the toolbar to go to the unfamiliar code you saw earlier in Interp::dispatch().

  5. In the next section, you will set a breakpoint a bit before the call to find() so you can step through the code to learn why things went wrong.