In run mode the script runs ok without errors. In debug, the first OK code and screen come up, but it doesn't execute, causing debug mode to get off track.
BP transaction or any script build in 10.x and run in 12.x
Copy and paste the first screen and cursor field rows at the top of the script. In run mode, this is ignored. In debug mode, it gives the script an additional pause to allow for the first OK code to execute.