Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsUnable to flush output to console in PDT 2.0
https://www.eclipse.org/forums/index.php/mv/msg/28161/91452/#msg_91452
One thing that is bothering me, though:
The only way I can get "dynamic" output of a php script (via echo/flush)
is when I "Run as Webpage". Since all my php development is not for web
applications, but command line scripts, I would like to see output
immediately like I am used to from running directly in a shell.
I have already set all parameters in php.ini
output_buffering = Off
implicit_flush = On
but as I said this only works for running the script in PDT as a webpage.
Of course I updated the correct php.inis (both for the local webserver
and the php cli), so this is not the problem.
Whenever I choose "Run as Script" or "Debug as Script" all output goes
to the PDT Windows "Debug Output" and "Browser Output" and in both of
these Windows the output is delayed (buffered).
How can I get the good old shell behaviour I am used to?
Also, I wonder why there is a window called console, but no output
whatsoever
from my script goes there?
I would be very grateful for any help.
Thanks, Josef]]>Josef Haydn2009-01-23T01:17:05-00:00Re: Unable to flush output to console in PDT 2.0
https://www.eclipse.org/forums/index.php/mv/msg/28161/91555/#msg_91555
Originally posted by: juice.hi.makni.htnet.hr
Josef Haydn wrote:
> One thing that is bothering me, though:
<snip>
I have the exact same problem. I developed a reporting application which
works in CLI. Assistance would be appreciated.
--
Vozdra! Ivan [Juice]
I am a marxist of the Groucho variety.]]>2009-01-23T10:37:01-00:00Re: Unable to flush output to console in PDT 2.0
https://www.eclipse.org/forums/index.php/mv/msg/28161/643759/#msg_643759
@ob_flush();
@flush();
@ob_end_flush();]]>Maloupi 2010-12-08T08:09:24-00:00