We can use a redirection (<) to read script file instead of the console. For example,
Please create script.txt that has the following lines:
(Enter to make a blank line)
(please press Enter to make a blank line)
Please run the command.
debug < script.txt
Below is the result: