不能正常工作xDebug在PhpStorm中。一直等待连接。等待与ide键'PHPSTORM'的传入连接
我的配置
[Xdebug]
zend_extension="c:/openserver/modules/php/PHP-5.6-x64/ext/php_xdebug.dll"
xdebug.auto_trace = 0
xdebug.collect_includes = 1
xdebug.dump.REQUEST = *
xdebug.dump.SESSION = *
xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD
xdebug.dump_globals = 1
xdebug.dump_once = 1
xdebug.dump_undefined = 1
xdebug.extended_info = 1
xdebug.idekey = "PHPSTORM"
xdebug.max_nesting_level = 256
xdebug.overload_var_dump = 1
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir="c:/openserver/userdata/temp/xdebug/"
xdebug.profiler_output_name = "cachegrind.out.%H%R"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_port = 9000
xdebug.trace_output_dir = "c:/openserver/userdata/temp/xdebug/"
xdebug.var_display_max_children = 256
xdebug.var_display_max_depth = 16
哪里是我的错?
你运行PHP-FPM任何机会 ?它带有默认的端口9000(如xdebug),如果php-fpm在phpstorm之前启动,则会导致问题。看看xdebug日志,看看里面发生了什么。 – YvesLeBorg
temp \ xdebug为空 –
因此......或者Xdebug配置错误(按照以下BettleJuice的答案),或者它没有写入目标/文件的权限,因此无法写入其日志。 Apache日志一样。请记住,如果您更改了apache或php的任何配置,请重新启动进程(包括并且非常重要的是,如果您使用的是php-fpm)。 – YvesLeBorg