【问题标题】:Xampp portable on USB stick - configure xdebugXampp 在 USB 记忆棒上可移植 - 配置 xdebug
【发布时间】: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)”

标签: php apache xampp


【解决方案1】:

我将分享到底是什么问题。

首先我检查了phpinfo() 的结果,我意识到 xdebug 模块根本没有加载,但是扩展的路径看起来很正确。

然后我将zend_extension = "\xampp\php\ext\php_xdebug.dll" 更改为zend_extension=php_xdebug.dll,然后我能够使用NetBeans 调试托管在此XAMPP 便携式服务器上的PHP 应用程序。

干杯!

【讨论】:

  • 已保存。我的。日。谢谢。
猜你喜欢
  • 2018-07-05
  • 2018-10-20
  • 1970-01-01
  • 2020-08-17
  • 1970-01-01
  • 2011-11-13
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多