Newbie asks...what is the correct stepwise action of web storm debugger
Having finally got the debugger working ...I'm not sure if it's working 100%.
I have a file with a series of simple echo statements. Which I am stepping through okay. And the value of various internal variables seem to appear okay in the IDE debug window.
However nothing appears on the Chrome browser window till the program hits the ?> termination. Then it all appears okay.
Is this the expected behaviour or should the browser update after each statement?
Using Xdebug with Chrome and the Chrome Xdeug extension.
Thanks for any help.
Please sign in to leave a comment.
Hi there,
Yes, it's normal/expected behaviour. PHP itself buffers output when working in web environment. 4KB is the default value I believe (https://www.php.net/manual/en/outcontrol.configuration.php#ini.output-buffering). The actual web server (Apache/IIS/etc) may also have some buffering in place on top of that.
If you make "output_buffering = 0" in your php.ini then you should see your output straight away in debugger's "Output" tab: