【问题标题】:how to debug PHP on xampp如何在 xampp 上调试 PHP
【发布时间】:2015-07-07 04:27:09
【问题描述】:

我的 IDE 是 netbeans 8.2,而 iam 使用的是 xampp 3.2.1

我做错了什么?

这是我的 php.ini 文件

[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
;xdebug.profiler_append = 0
;xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 0
;xdebug.profiler_output_dir = "C:\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "C:\xampp\tmp"

这是 netbeans 上的设置:

【问题讨论】:

  • 你也可以使用FirePHP 来调试你的PHP。 :)

标签: php netbeans xampp xdebug php-ini


【解决方案1】:

检查this wiki page。您在 php.ini 文件中至少缺少端口和模式配置:

xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

【讨论】:

【解决方案2】:

如果缺少此行,请在您的 php.ini 文件中添加此行

;extension=php_xdebug.dll

【讨论】:

    猜你喜欢
    • 2020-05-19
    • 2012-09-23
    • 2012-01-15
    • 2018-04-20
    • 2021-03-12
    • 1970-01-01
    • 1970-01-01
    • 2020-11-21
    • 2020-11-16
    相关资源
    最近更新 更多