When I run php script in phpstorm, I see echo message only when i stop script

I run script in phpstorm (shift+f10) with that code:
while (true) {

sleep(1);

echo 'Test ';

}
While script running in phpstorm, I do not see output messages in window.
But, when i stopped it, I saw all output messages.
I do not want to use PHP_EOL, I want to see output messages such as i run that script in console in real time





1 comment
Comment actions Permalink

Unfortunately, there doesn't seem to be a way to achieve that at the moment.
I've pushed it to our issue tracker, please vote for the request to get notified when there's any progress with it: https://youtrack.jetbrains.com/issue/WI-67864/WSL-Interpreter-repetitive-output-delayed-until-the-script-stops

0

Please sign in to leave a comment.