Console output for a PHP script? Follow
I am trying to debug a standalone PHP script. I have created a 'PHP Script' configuration. When debugging using that configuration the output from the script does not show in the Console window - ie. echo statements in the script do not produce anything in the PHPStorm Console.
Am I missing something? Where does the output of the script is supposed to show in PHPStorm? Is there a configuration setting somewhere, or for xdebug?
Please sign in to leave a comment.
Hi Nicolas,
Works fine for me here (at very least on this very basic and simple code). Does it work for you?
Maybe you have output buffering turned on?
Does not work for me, with the same code. See screenshot below.
![]()
Is there a configuration setting that could cause this behavior?
Attachment(s):
phpstorm console.png
1) I see no screenshot
2)
In PhpStorm -- nope (I 'm not aware of any). In xdebug or PHP -- maybe -- post your php.ini (or at very list outputof phpinfo(); )
3) Have you check this?
Sorry Andriy, I edited my previous post to attach the screenshot.
There is no output buffering since I copied your script verbatim.
It also cannot be an issue with php.ini since when launching the script from a command prompt I do get the output.
So it must be either with PHPStorm, or xdebug.
So .. what are your xdebug settings are? I have these and it just works:
Standard PHP 5.4.8 (x86) with xdebug 2.2.1 on Windows 7 SP1 x64