Debugging a Program With dbx

Scenario 1: Comparing Different Views of the Same Data

The same data can be graphed multiple times which allows different graph types and different segments of data to be compared.

  1. Load the C or Fortran sample program.

  2. Set a breakpoint at the end of the program.

  3. Start the program, running the program to that breakpoint.

  4. Type bf into the Expressions text field in the Debugging window.

  5. Choose Data Graph Expression, which brings up a Surface graph of both dimensions of the bf array.

  6. Choose Data Graph Expressions again to bring up a duplicate graph.

  7. Click Show Options and select Contour for the graph type. Now you can compare different views of the same data (Surface vs. Contour).

  8. Type bf(1,:) for the Fortran or bf[1][..] for the C example program into the Expression text field.

  9. Now Choose Data Graph Expression to bring up a graph of a section of the data contained in the bf array.

All these different views of the data can now be compared.