phpstorm - 等待带有 ide key 'PHPSTORM 的传入连接

标签 phpstorm xdebug

我购买并安装了 PhpStorm。接下来我决定配置 xdebug。我设置并看到了此信息

"Waiting for incoming connection with ide key 'PHPSTORM'"

我做了很多事情,但没有什么对我有帮助。请帮助我。

[Xdebug]
zend_extension="%sprogdir%/modules/php/%phpdriver%/ext/php_xdebug.dll"
;xdebug.default_enable = 1
xdebug.auto_trace = 0
xdebug.collect_includes = 1
;xdebug.collect_params = 4
;xdebug.collect_return = 1
;xdebug.collect_assignments = 1
;xdebug.collect_vars = 1
xdebug.dump.REQUEST = *
xdebug.dump.SESSION = *
xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD
;xdebug.dump.COOKIE =
;xdebug.dump.FILES =
;xdebug.dump.GET =
;xdebug.dump.POST =
xdebug.dump_globals = 1
xdebug.dump_once = 1
xdebug.dump_undefined = 1
xdebug.extended_info = 1
;xdebug.file_link_format = ""
xdebug.idekey = "PHPSTORM"
;xdebug.manual_url = "http://www.php.net"
xdebug.max_nesting_level = 256
xdebug.overload_var_dump = 1
;xdebug.profiler_append = 1
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir="%sprogdir%/userdata/temp/xdebug/"
xdebug.profiler_output_name = "cachegrind.out.%H%R"
xdebug.remote_autostart = on
xdebug.remote_enable = on
xdebug.remote_connect_back = on
;xdebug.remote_autostart = 0
;xdebug.remote_enable = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
;xdebug.remote_log = "none"
xdebug.remote_mode = "req"
xdebug.remote_port = 9000
;xdebug.scream = 1
;xdebug.show_exception_trace = 0
;xdebug.show_local_vars = 1
;xdebug.show_mem_delta = 1
;xdebug.trace_format = 1
;xdebug.trace_options = 1
xdebug.trace_output_dir = "%sprogdir%/userdata/temp/xdebug/"
;xdebug.trace_output_name = "trace.%H%R"
xdebug.var_display_max_children = 256
;xdebug.var_display_max_data = 1024
xdebug.var_display_max_depth = 16
;xdebug.remote_cookie_expire_time = 3600

最佳答案

您是否在首选项 -> 构建、执行等 -> 调试器中启用了“可以接受外部连接”? 还可以尝试添加远程日志路径

xdebug.remote_log = E:/Server/tmp/xdebug.log

这样你就可以收集 xdebug 日志并查看它的内容。 看这个So thread如需更多帮助

关于phpstorm - 等待带有 ide key 'PHPSTORM 的传入连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41234256/

相关文章:

mysql - 如何使用 PhpStorm 连接到 localhost MySQL5.7 数据库?

php - xdebug 设置 PHP 调试

php - 无法在 XAMPP 和 Windows XP 上安装 Xdebug

php - Docker + Xdebug + VSCode 无法连接到客户端

xampp - Xdebug + XAMPP + Netbeans = 失败。无法让调试器在 Netbeans 中工作

php - Laravel 和 Xdebug - 由于 fatal error : Can't find Controller class that all controllers extend it,我无法调试

PhpStorm。收集文件很慢

javascript - 方法表达式不是函数类型

database - 如何在 PhpStorm 中为 Datatrax php-driver 启用自动完成

php - PhpStorm中PHP扩展的函数和类