php调试cli模式下的代码
IDE :phpstrom9.0.2
DEBUG:XDEBUG.2.3.3
XDEBUG.CONFIG
xdebug.remote_enable = on
xdebug.collect_params=3
;xdebug.collect_return=1
xdebug.collect_vars=1
xdebug.collect_assignments=1
xdebug.collect_includes=1
xdebug.trace_format=0
xdebug.auto_trace=0
xdebug.trace_output_dir="d:/wamp/xdebug"
;xdebug.trace_options=1
;xdebug.profiler_enable = off
;xdebug.profiler_enable_trigger = off
;xdebug.profiler_output_name =cachegrind.out.%t.%p
xdebug.trace_output_name=trace.%H%R%t
;xdebug.profiler_output_dir = "d:/wamp/tmp"
;xdebug.show_local_vars=1
;xdebug.idekey = PHPSTROM
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9000
xdebug.idekey="PHPSTORM"
xdebug.cli_color=2
xdebug.show_exception_trace=0
xdebug.show_mem_delta=1
xdebug.var_display_max_children=-1
xdebug.var_display_max_data=-1
xdebug.var_display_max_depth=6
xdebug.profiler_append=0
在cli下和cgi下我的php.exe都是5.6.14加载的同一个php.ini文件
先看下调试的页面

这种情况和调试http发送过来的请求是没有什么不同的。
下面附上配置


链接:
https://www.jetbrains.com/phpstorm/help/run-debug-configuration-php-script.html
浙公网安备 33010602011771号