Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Debug output not Flushing
Debug output not Flushing [message #631790] Fri, 08 October 2010 14:33 Go to next message
No real name is currently offline No real name
Messages: 2
Registered: October 2010
Junior Member
I have setup eclipse helios with zend server CE. I can use the debug module to step through code but no output is displayed to the console window until the script ends. Is there a way to fix output buffering to work properly? My php.ini is setting output_buffering = Off. When I view my phpinfo(), it says the output_buffering = No value, however Implicit_flush = On. Also I have tried manually setting the flush on in the php script using

ob_implicit_flush(TRUE);
echo "Hello World<br>\n";
flush();
echo "Hello World<br>\n";
flush();

Nothing seems to matter.

Using:
Eclipse for PHP Developers
Version: Helios Release
Build id: 20100617-1415
------
PHP Version 5.3.3
Zend Framework Version 1.10.8
Re: Debug output not Flushing [message #631838 is a reply to message #631790] Fri, 08 October 2010 21:52 Go to previous messageGo to next message
Toshihiro Izumi is currently offline Toshihiro Izumi
Messages: 338
Registered: July 2009
Location: Japan
Senior Member
Try
ob_implicit_flush(TRUE);
ob_end_flush();
echo "Hello World<br>\n";
//flush();
...

see also last comment at http://jp.php.net/manual/en/function.ob-implicit-flush.php
Re: Debug output not Flushing [message #631852 is a reply to message #631790] Sat, 09 October 2010 02:42 Go to previous message
No real name is currently offline No real name
Messages: 2
Registered: October 2010
Junior Member
I figured it out, something about output_buffering=Off not taking effect. Setting output_buffering=0 in php.ini does work though.
Previous Topic:Newly installed php pdt
Next Topic:missing builder after distribution upgrade
Goto Forum:
  


Current Time: Thu Apr 24 14:50:24 EDT 2014

Powered by FUDForum. Page generated in 0.03615 seconds