recording commands

is there a way to record and playback (replay) some commands, in order to give a walkthrough, and to debug more easily a game ?
I couldn't find anything so far.

There is a "save all game output to textfile" or something similar in the settings of Quest.
That should save all input and output to the Quest window.