Page 1 of 1

Unable to view output if Start option is used

PostPosted: July 3rd, 2018, 1:44 pm
by Mikhail
Hello,

I have created a test project using the 'PHP Console Project' option.

If I used the 'Start Debugging' option, the command prompt will briefly appear before disappearing, thus unable to view any output.

However, if I used Start without Debugging, the command prompt will display the output without closing automatically.

Is this the intended behavior?
Or is there something that needs to be configured to get this working correctly?

Thanks!

Re: Unable to view output if Start option is used

PostPosted: July 4th, 2018, 9:41 am
by maros.beno
Hi, this is the normal behavior of any console application. If you want to read some output while debugging, you can put breakpoint there or some function that would wait for user input and block until user enters it. For example readline("Press any key to continue...");

I hope this explains it, have a nice day!