PHP is unusually slow after opening Xdebug

PHP is slow to open the test page after opening the Xdebug extension. The breakpoint has been typed up, and Debugger also has a hint on PHPSTORM, but the page just doesn"t show

.

my Xdebug configuration is as follows
`[Xdebug]
zend_extension=C:xamppphpextphp_xdebug.dll
xdebug.remote_enable = On
xdebug.remote_handler = "dbgp"
xdebug.remote_host= localhost
xdebug.remote_port = 9000
xdebug.idekey = "PHPSTORM"
xdebug.profiler_enable=0
`
this is my screenshot

in this way, the page does not respond all the time, and then after the debugging is stopped, the content of the page comes out

.
Mar.22,2021

you don't know what a breakpoint is, do you? The response is completed after the breakpoint has finished walking through the page


content is in the output buffer. Call flush () to send the contents of the current buffer to the browser
apache environment. The default output_buffering, in the configuration file of php is 4096 (4K). Call ob_end_flush () to refresh the buffer
webserver apache also has a buffer to buffer the output of php, and call flush () to refresh the buffer
the buffer with 4096bytes (4K) on the browser side. This is controlled by the browser
these buffers will be automatically refreshed at the end of the request
during debugging, consider sending 4096 bytes of empty characters to fill the browser's buffer, and then flushing the php and apache buffers to see the output in real time

echo $str = str_repeat(" ",4096);

$a = 1;

if($a != 1)
{
    echo 1;
}
else
{
    echo 2;
}

//,
ob_end_flush();
flush();

has reached the breakpoint. Then it must have been interrupted. It is necessary for you to continue with the operation.

Menu