Implement command-line script debugger