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 13. The Replay Window

Choose Replay from the Code menu to open the Replay window.  This window
displays each of the steps that you have performed during this debugging
session that might have affected program flow.  There are three items
displayed in the replay window.  First is the address the program was
executing when you took some action that could affect the program.  These
actions include setting break points, tracing and modifying memory.  Second
is the source or assembly code found at that address.  Third is a command in
the debugger's command language that will duplicate the action you took.
 The most common use for Replay is when you accidentally step over a
function call, or the program unexpectedly runs to completion.  If this
happens, you can open the replay window, and replay you debugging session up
to any point prior to the last action you took.

There are special cases where replay will not perform as expected.  Since
replay is essentially the same as playing your keystrokes and mouse
interactions back to the debugger, your program must behave identically on a
subsequent run.  Any keyboard or mouse interaction that your program expects
must be entered the same way.  If your program expects an input file, you
must run it on the same data set.  Your program should not behave randomly
or handle asynchronous events.  Finally, your program should not be
multi-threaded.  If you have just been tracing one thread, your program will
replay correctly, but multiple threads may not be scheduled the same way on
a subsequent run.

You can replay program execution to any point by double clicking on that
line or by cursoring to it and pressing ENTER.  Select any line and press
the right mouse button to see the following pop-up menu items:


Goto
    Replay the program until it returns to the selected level in the replay
    history.

Source
    Position the source window at the selected line.

Assembly
    Show the assembly code for the selected line.

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