开发者

PHP Echo Statements don't show in Browser Output in Eclipse w/ XDebug?

I am testing XDebug on Xampp using win7-64 with Eclipse PDT. I am debugging a simple script that echoes statements. I can step over these statements, but the internal web browser window doesn't show these statements until after the entire script has finished running. I tried entering phpinfo() at the top of the script and it disp开发者_如何学Clays in the browser just fine immediately after stepping over it. Has anyone run across this issue and is there a way to fix it?


Editing the following lines in php.ini solved the issue for me:

implicit_flush = On
output_buffering = 0


Add the ob_get_contents() Eclipse expression, you will see the buffer!


maybe it's buffering output?
tried flush() ?
http://php.net/manual/en/function.flush.php

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜