A method, system, and product are disclosed for automatically generating a symbol-based
debug script, which is executable by a debug program, for debugging a software
program. Function symbols included in the software program are identified. The
functions represented by the function symbols may be executed during an execution
of the software program. A debug script is then automatically generated which,
when executed by a debug program, will record each one of the functions symbols
which represent a function called by the software program during execution of the
software program by the debug program.