【发布时间】:2017-02-25 09:41:46
【问题描述】:
我确实通过从https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/1.8.3/ 下载 zip 版本在 USB 记忆棒上安装了 xampp 便携式服务器 (在问题的上下文中,我想告诉你,首先我尝试通过安装程序安装它,但只在安装的 PC 上工作,所以如果你安装它,我建议你像从zip 文件,因此它可以在您插入闪存驱动器的每台 PC 上运行)。
所以我有 NetBeans 8,当我使用本地安装的 WAMP 服务器时,我成功地使用它来调试 PHP。
我正在尝试调试便携式 XAMPP 服务器上的 PHP 代码,但失败了。
php.ini xdebug 配置如下:
[XDebug]
zend_extension = "\xampp\php\ext\php_xdebug.dll"
xdebug.idekey = netbeans-xdebug
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "\xampp\tmp\xdebug"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_autostart = 0
xdebug.remote_connect_back = 0
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port = 9000
xdebug.remote_handler = "dbgp"
xdebug.remote_mode = req
xdebug.remote_log = "\xampp\tmp\xdebug\xdebug_remot.log"
xdebug.show_local_vars = 9
xdebug.trace_output_dir = "\xampp\tmp\xdebug"
如果有人这样做了,并且愿意告诉我该怎么做,那就太好了。
谢谢
【问题讨论】:
-
而“但我失败了”究竟是什么意思?
-
这意味着我无法通过 NetBeans(NB) 调试代码,并且似乎 NB 无法连接到 xdebug。我在 NB 未确定进度条的右下角看到带有文本“Waiting For Connection (netbeans-xdebug)”