断点不会在phpstorm + xdebug中命中

时间:2014-04-14 18:59:23

标签: xdebug phpstorm

os:windows 7 web服务器:xampp 1.8.2(php版本:5.4.27) phpstorm:6.0.3

在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"

当我在phpstorm中调试web应用程序时。 xdebug正在运行但与运行一样。 我设置了一些断点,但它并不止于此。

1 个答案:

答案 0 :(得分:2)

由于xdebug.remote_enable = 0配置行,您已禁用调试器。

必须是1(开/真)。

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