I don't know how you can do this but maybe external debugger. Or a detachable debugger, preferable as a console window. That way I can have three tabs. 1 running the debugger up to the breakpoint. 2. a tail /f for the logfile seeing what's going on while processing 3. the actual script. This will give me an indept view of the script I'm developing.