I understand what you are saying, but that would be useful if the script was huge lines of code, the script is just 40 lines, and the only part not working(means it runs, no errors, but there is no data in the tables of the destination DB) is the insert .so I guess I will try inserting from the command line
The utility is in allowing us to reproduce the issue you see. Without that we are doing the debugging with at least a few hours between iterations. It's kinda asking a lot for us to maintain interest in solving your problem that way.
Premature optimization is the root of all job security