【发布时间】:2012-04-24 09:58:05
【问题描述】:
我将 XAMPP Lite 用于 USB 驱动器。我还发现了功能齐全的 Netbeans 便携版。
问题是由于路径问题我无法安装 XDebug。例如。在我的本地 PC 服务器上PHP.ini 配置文件看起来像这样
[zend]
zend_extension = "C:\Program Files (x86)\PHP\ext\php_xdebug.dll"
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.profiler_enable = On
xdebug.profiler_output_dir = C:\Windows\temp
xdebug.dump_globals=On
xdebug.show_exception_trace=On
xdebug.collect_params=4
如您所见,所有路径都是绝对的;我的意思是驱动器号。但我不能为 USB 闪存驱动器编写绝对路径。
我的问题是:
- 有什么方法可以在 USB 闪存驱动器上使用 Xammp Lite 进行 xDebug 工作?
- 任何可移植的替代调试器?
【问题讨论】:
-
不确定它是否会工作,但你可以尝试使用类似“\php\ext\php_xdebug”的路径,它可能会假设驱动器号是 PHP 正在运行的任何驱动器(闪存驱动器) .
标签: php netbeans xampp xdebug portable-applications