Unable to view output if Start option is used

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Unable to view output if Start option is used

Postby Mikhail » July 3rd, 2018, 1:44 pm

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!
Mikhail
 
Posts: 1
Joined: July 3rd, 2018, 1:36 pm

Re: Unable to view output if Start option is used

Postby maros.beno » July 4th, 2018, 9:41 am

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!
Maroš Beňo
User avatar
maros.beno
 
Posts: 62
Joined: October 12th, 2016, 12:11 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 46 guests

cron

User Control Panel

Login

Who is online

In total there are 46 users online :: 0 registered, 0 hidden and 46 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 46 guests