Viewing source code

You can load program source code into the Source window from several panes in the PASE Debugger interface. The Source window displays a particular location in the source code based on your previous debugging activities and the pane from which you load the source code. In addition to displaying source code, you can also perform the following actions:

Note: You can work with the PASE Debugger in a variety of ways: by right-clicking or double-clicking appropriate objects, by using a menu or a keyboard shortcut, or by using the tool bar (if the menu command has a tool icon). The following procedures specify only one way to select a command.

Displaying source code

To view source code, in the Files, Methods, Loadmap, Breakpoint, or Call Stack panes, right-click the appropriate object and select Go to Source.

Displaying assembly code

You can also display or hide a view of the assembly code associated with the source code that appears in the Source window. The assembly code area appears in the lower portion of the Source window.

To ensure that the assembly code area and the Source window show the same portion of the program, click the arrow icon in the title bar of the assembly code area.

Resize the assembly code area by using the horizontal bar at the top of the display area or by clicking the triangles on the left side of the bar.

Searching for text

To search for specific text in the Source window, complete the following steps:

  1. Right-click in the Source window and select Find.
  2. In the Find dialog, type the text that you want to search for.
  3. Select the direction in which you want to search.
  4. Specify whether you want the search to continue past the beginning or end of the source file and end at the line where you begin the search.
  5. Click OK.

Go to a specific line

To go to a specific line of code in the Source window, complete the following steps:

  1. Right-click the Source window and select Go To Line.
  2. In the Go To Line dialog, type the line number that you want to display.
  3. Click OK.