Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom Debugger Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Figure 8. The Source Window

The Source window displays your program's source code.  As you trace through
your program, it repositions itself at the currently execution location.  If
you have an Assembly window open, the Source and Assembly windows will
always be positioned at the same code.  If you scroll in one, the other
follows.

Source lines that have code associated with them have a button at the left
of the screen.  You can click on this button to set, disable and clear break
points.

You can Inspect any item displayed in the source window by double-clicking
on it, or by cursoring to it and pressing ENTER.  Press the right mouse
button to access the following pop-up menu items:


Inspect
    Inspect the selected item in an appropriate window.  You can select
    function names, variable names, or any valid expression.

Run to Cursor
    Resume program execution until the selected line is executed.

Break
    Add a breakpoint based on the selected text.  If a variable is selected,
    the program will stop when its value changes.  If a function name is
    selected the program will stop when that function is executed.  This
    does not set a break at the current line.  Use Toggle from the Break
    menu or At Cursor from the Break menu to set a breakpoint at the current
    line.

Enter Function
    Resume program execution until the selected function is entered.

Watch
    Add the selected item to the Watches window for further inspection or
    modification.

Find
    Search for other occurrences of the selected string in the Source
    window.

Home
    Reposition the window to show the currently executing location.  The
    cursor will move to the next line of the program to be executed.

Show/Assembly
    Show the assembly code associated with the selected line.

Show/Functions
    Show the list of all functions contained in the source file.

Show/Address
    Reposition the window at a new address.  You will be prompted for an
    expression.  Normally you would type a function name but you can type
    any expression that resolves to a code address.  For example, you might
    type the name of a variable that contains a pointer to a function.  See
    Watcom Debugger Expression Handling.

Show/Module
    Show the code for a different module.  You will be prompted for its name
    in a dialog.  As a shortcut, you can type the beginning of a module name
    and click the Module...  button.  This will display a list of all
    modules that start with the text you typed.

Show/Line
    Move to a different source line.  You can also find out what line you
    are looking at.  The edit field will be initialized with the current
    line number.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson