breakpoint does not hit in phpstorm+xdebug

2019-07-25 12:39发布

问题:

os: windows 7 web server: xampp 1.8.2 (php version: 5.4.27) phpstorm: 6.0.3

in php.ini:

[XDebug]
zend_extension = "D:\xampp\php\ext\php_xdebug-2.2.4-5.4-vc9.dll"
;xdebug.default_enable=1 
;xdebug.auto_trace=1
;xdebug.show_exception_trace = 1  
;xdebug.collect_vars = 1 
;xdebug.collect_params=1
;xdebug.collect_return=1
;xdebug.profiler_append = 1
;xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = "D:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 0
;xdebug.remote_autostart = off 
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.trace_output_dir = "D:\xampp\tmp"
xdebug.remote_mode = "req"
xdebug.remote_port = 9001
xdebug.idekey="PHPSTORM"

when I debug web application in phpstorm. xdebug is working but as same as running. I have set some breakpoints, but it does not stop there.

回答1:

You have debugger disabled because of xdebug.remote_enable = 0 config line.

It has to be 1 (on/true).

http://confluence.jetbrains.com/display/PhpStorm/Xdebug+Installation+Guide