| Online Eiffel Documentation |
| Documentation Home > Tools > EiffelStudio > EiffelStudio Reference > EiffelStudio Debugger |
| EiffelStudio |
Execution replay |
This new feature allows the user to record the debuggee execution, and when it is stopped to replay the recording. One could see this feature as a rewind/forward, or undo/redo of the execution calls.In practise, the debugger is recording the effective routine calls, and keep the object's values; when you replay the debugger will restore the recorded object's values. This way you can use the debugger's tools to inspect the values.
For performance reason, the debugger keeps only the last {RT_DBG_EXECUTION_RECORDER}.max_record_count object's records. For now, you can change that initial value by editing {RT_EXTENSION}.new_execution_recorder.
This functionality is graphically available on the Call stack tool, or though the "Execution" menu (former "Debug" menu).
When you start debugging, at some point you decide to start recording, click on the "record" button:

During the debugging, we decide to stop and replay the recent execution recording, as you can notice the "Recording" button is enabled, thus we can start replaying by clicking the "Replay" button

Now we are in "execution replay" mode, as you can notice the "Replay" button is enabled, and there is a new commands bar with "Replay Back", "Replay Forth", and the number of available "moves".
The red arrow show the replayed call stack level, and the call stack levels which can be replayed have a light blue background.

Here we clicked on "Replay Back" twice, you can now also "Replay Forth" twice. 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)

You can still select other call stack level as you do in normal debugging mode to inspect them, in this case the red arrow stick to the replayed call, and the green arrow show you the selected call stack level.

For now, EiffelStudio supports only "Replay back" and "Replay forth" (finner replay might be added for 6.2).
EiffelStudio 6.1 provides this feature only on classic system, this is not yet supported on dotnet (planned for 6.2).
| Copyright 1993-2006 Eiffel Software. All rights reserved. |