You can save the current state of the debuggee process in a snapshot, and later revert to that state and try a different set of steps. Conceptually speaking, this feature is similar to the undo function in text editors, except that with snapshots you have control of the granularity of each undo. See the Snapshots as an undo Mechanism for a quick overview.
snapshot_command
The following sections discuss these commands and address the limitations of snapshots.