Debugging a Program With dbx

Prerequisites for An Exact Restoration of a Saved Run

For exact restoration of a saved debugging run, all of the inputs to the run must be exactly the same: arguments to a run-type command, manual inputs, and file inputs.


Note -

If you save a segment and then issue a run, rerun, or debug command before you do a restore, restore uses the arguments to the second, post-save run, rerun, or debug command. If those arguments are different, you may not get an exact restoration.


To restore a saved debugging run:


(dbx) restore

To restore a debugging run saved to a file other than the default save-file:


(dbx) restore filename