- 17.05 (released) ...
Replay (recorded) execution
The replay functionality is available from a button on the Call stack tool, or though EiffelStudio's "Execution" menu.
Now, whenever the application is stopped in the debugger, you can replay the recorded execution by clicking on the "Replay" button:
After clicking the "Replay" button, the Call stack tool enters "execution replay" mode, as shown below:
In "execution replay" mode, the "Replay" button is enabled, and an additional command bar becomes visible with replay control buttons "Back", "Forth", "Previous", "Next", and "Go to". The numbers on the right end of this command bar indicate the call stack depth, the breakable index, and the nested breakable index. The buttons have following meanings:
- Back: means replay back to caller, i.e., down in the call stack.
- Forth: means replay to callee, i.e., up in the call stack.
- Previous: means replay to previous instruction (previous call in the same stack; i.e., similar to step previous) if possible.
- Previous: means replay to next instruction (next call in the same stack; i.e., similar to step next) if possible.
- Go to: replay to the selected call when possible.
Below the command bar, in the first column, you will find a tree structure, which shows, on the root level, the effective call stacks, and for each root node, you can inspect the sub element to browse the call history.
The bold entries show the active call stacks (i,e., the current call stack when the debugger was stopped).
The red arrow shows the replayed call stack level, and the call stack levels which can be replayed have a light blue background.
If you expand a node, you will be able to browse the whole recorded execution history from this stack, as shown below (if you expand the bottom node, the whole recorded execution history will be available).
You can still select other call stack levels as you do in normal debugging mode to inspect them. When you do, the red arrow stick to the replayed call, and the green arrow indicates the call stack level you selected.
In the image below, we have clicked on "Back" 3 times. You can now also replay "Forth" 3 times. When you execute a "Replay" operation, the debugger restores the related recorded values, and the various debugger tools are updated with tools values (including the watch tools)
And then if you replay "previous" twice, you rewind the execution in the same call stack frame. Notice the "blue" dot that shows the replayed execution cursor.