0

I'm trying to debug some_script.php and want to pass --some-parameter in php script arguments tab. My script is started regularly, but I do not see --some-parameter in $argv[1], which should be initialized. My xdebug configuration for cli scripts include only one line:

zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"

This is on Mac OS.

4

1 回答 1

0

我将 php.ini 设置如下:

[xdebug]
zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
xdebug.remote_enable = on
xdebug.remote_handler="dbgp"
;xdebug.remote_mode="req"
xdebug.remote_port=9000
xdebug.remote_host="127.0.0.1"
;xdebug.remote_log=/var/log/xdebug_remote_log
;xdebug.remote_autostart=1
xdebug.profiler_enable_trigger=on
xdebug.profiler_output_dir=/tmp
xdebug.profiler_output_name=cachegrind.out.%s.%t
;xdebug.collect_return=on
;xdebug.collect_vars=on
;xdebug.auto_trace=0

然后我重新启动了eclipse,现在正在工作。

于 2012-10-01T12:38:20.680 回答