If I enable xdebug by settting xdebug.remote_enable=1
, the apache server becomes very slow; once I change the setting to 0
, it's normal.
I found a same question here: XDebug really slow, but the answer isn't helpful. I didn't enable profiling:
xdebug.profiler_enable=0
xdebug.auto_trace = 0
xdebug.trace_output_dir = /tmp/xdebug
xdebug.trace_output_name = trace.%c
I checked there's nothing under /tmp/xdebug folder.
When xdebug remote debug is enabled and I enable debug listening in PHPStorm, it takes a short while to stop at the breakpoint, but not as slow as disabling phpstorm debug listening.
My environment is: php + apache + xdebug on local centos VM, my mysql db and PHPStorm are on Windows desktop for development. MySQL is not slow.
Appreciate for help.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…