使用NetBeans和XDebug进行调试时没有输出

I've run into some strange problem, after upgradeing my PHP to 5.4 I have a problem with debugging in NetBeans 7.0.1. When debbuging session is active the browser does not show any output but the debugger runs normally. I can set breakpoints in my application, and they work normaly, but server does not return anything back to the browser. After sending end of session request output works normally.

Here are my settings in php.ini

zend_extension = c:\php\ext\php_xdebug-2.2.0RC1-5.4-vc9.dll
xdebug.remote_enable=on
xdebug.remote_host=localhost
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_log="c:\php\xdebug.log"

According to xdebug log, xdebug is conntected to IDE, and IDE does not complain on anything.

Any clues would be much appriciated. Here is my php.ini file: http://pastebin.com/z8LBsmmw

Maybe you have enabled output_buffering ? also, enabling an output_handler(like a compression handler, eg gzip) can buffer, at least up until a certain chunk size is reached.

browsers buffer too sometimes. outputting a bunch of whitespace can get around that.

I've run into the same problem; someone may find my solution useful.

Besides turning off output_buffering and any output handlers, as @goat already mentioned, you have to turn on implicit_flush.

As the PHP Manual states:

Changing this to TRUE tells PHP to tell the output layer to flush itself automatically after every output block. This is equivalent to calling the PHP function flush() after each and every call to print or echo and each and every HTML block.

When using PHP within an web environment, turning this option on has serious performance implications and is generally recommended for debugging purposes only.