【问题标题】:breakpoint does not hit in phpstorm+xdebug断点在 phpstorm+xdebug 中没有命中
【发布时间】:2014-05-28 21:14:32
【问题描述】:

操作系统:Windows 7 网络服务器: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 正在工作,但与运行相同。 我已经设置了一些断点,但它并没有就此停止。

【问题讨论】:

  • 我也想在eclipse php 3.0.2中设置。结果是一样的。我认为php和xdebug可能有问题。
  • "xdebug.remote_enable = 0" -- 难怪 -- 调试器被禁用。 confluence.jetbrains.com/display/PhpStorm/…
  • 感谢 Lazyone,我今天早上犯了这么愚蠢的错误。 remote_enable 应该是 1。
  • 你配置服务器路径了吗?

标签: xdebug phpstorm


【解决方案1】:

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

它必须是1(开/真)。

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-08-31
    • 2013-04-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-31
    • 2013-05-28
    相关资源
    最近更新 更多