I may be misunderstanding the instructions but is there a way of 'marking' specified lines in a script so that you can Run to the line, the script stop so that you can move line by line/ examine results, then Run again to the next specified line?
With the script open in the debugger, click to the left of the line number for a given script step.
Then click either Run (triangle) or Step Over (up arrow) and the script will run, but halt at the step so marked.
Just click on the line number on the left. When you are in the script workspace.
This help topic may be beneficial, "Debugging scripts (FileMaker Pro Advanced)". The "To set or clear a breakpoint,"...
FileMaker Pro 16 Help
As stated, the Advanced version of FMP is required. From your question it appears that you have that.
Thank you both. I'd just not been clicking exactly on the number.
Retrieving data ...