Hello Steve,
Im currently writing something like your debugger - its no debugger, but a step by step gui testing tool.
I need to "generate" a script and then have to execute it with wrapper calls like your debugging script does.
while developing the "generator" i found a debugger problem:
please try to debug a script with the following line:
$a="$b"
you detect $b within a string as a possible variable - your wrapping script throws an error then.
you have to "eliminate" the string contents (or 'x' or ' ' empty them) before "scanning" for variables.
Greets, fishy.
