The console parameter can have any of these values: internalConsole, integratedTerminal, externalTerminal .
Usually, if you start the debugger and the program stops, it leaves an external terminal that displays the Press Enter to continue . . . prompt Press Enter to continue . . . Press Enter to continue . . . to access any program output. If you accidentally receive a syntax error, the external terminal simply closes without leaving any message.
When using the integratedTerminal parameter, the terminal remains there and displays an error message.
While I do not know if this external external thing is an error or not, in this case the IntegratedTerminal function works much better.
source share