欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

mysql - phpstorm配置debug:Waiting for incoming connection...?

程序员文章站 2022-04-20 09:45:19
...

今天在折腾使用phpstorm配置xdebug + chrmoe的断点调试(想看配置方法的参考:http://www.it165.net/os/html/201505/12846.html).
配置完后,开始断点调试,但是发现debugger面板一直输出:

Waiting for incoming connection with ide key 18479

截图如下:
mysql - phpstorm配置debug:Waiting for incoming connection...?

导致不能进行后面的断点调试...

我的xdebug配置如下:

Directive    Local Value    Master Value
xdebug.auto_trace    Off    Off
xdebug.cli_color    0    0
xdebug.collect_assignments    Off    Off
xdebug.collect_includes    On    On
xdebug.collect_params    0    0
xdebug.collect_return    Off    Off
xdebug.collect_vars    Off    Off
xdebug.coverage_enable    On    On
xdebug.default_enable    On    On
xdebug.dump.COOKIE    no value    no value
xdebug.dump.ENV    no value    no value
xdebug.dump.FILES    no value    no value
xdebug.dump.GET    no value    no value
xdebug.dump.POST    no value    no value
xdebug.dump.REQUEST    no value    no value
xdebug.dump.SERVER    no value    no value
xdebug.dump.SESSION    no value    no value
xdebug.dump_globals    On    On
xdebug.dump_once    On    On
xdebug.dump_undefined    Off    Off
xdebug.extended_info    On    On
xdebug.file_link_format    no value    no value
xdebug.force_display_errors    Off    Off
xdebug.force_error_reporting    0    0
xdebug.halt_level    0    0
xdebug.idekey    PhpStorm    PhpStorm
xdebug.max_nesting_level    256    256
xdebug.max_stack_frames    -1    -1
xdebug.overload_var_dump    On    On
xdebug.profiler_aggregate    Off    Off
xdebug.profiler_append    Off    Off
xdebug.profiler_enable    Off    Off
xdebug.profiler_enable_trigger    Off    Off
xdebug.profiler_enable_trigger_value    no value    no value
xdebug.profiler_output_dir    /var/tmp/    /var/tmp/
xdebug.profiler_output_name    cachegrind.out.%p    cachegrind.out.%p
xdebug.remote_autostart    On    On
xdebug.remote_connect_back    Off    Off
xdebug.remote_cookie_expire_time    3600    3600
xdebug.remote_enable    On    On
xdebug.remote_handler    dbgp    dbgp
xdebug.remote_host    localhost    localhost
xdebug.remote_log    no value    no value
xdebug.remote_mode    req    req
xdebug.remote_port    9000    9000
xdebug.scream    Off    Off
xdebug.show_exception_trace    Off    Off
xdebug.show_local_vars    Off    Off
xdebug.show_mem_delta    Off    Off
xdebug.trace_enable_trigger    Off    Off
xdebug.trace_enable_trigger_value    no value    no value
xdebug.trace_format    0    0
xdebug.trace_options    0    0
xdebug.trace_output_dir    /var/tmp/    /var/tmp/
xdebug.trace_output_name    trace.%c    trace.%c
xdebug.var_display_max_children    128    128
xdebug.var_display_max_data    512    512
xdebug.var_display_max_depth    3    3

求赐教!

回复内容:

今天在折腾使用phpstorm配置xdebug + chrmoe的断点调试(想看配置方法的参考:http://www.it165.net/os/html/201505/12846.html).
配置完后,开始断点调试,但是发现debugger面板一直输出:

Waiting for incoming connection with ide key 18479

截图如下:
mysql - phpstorm配置debug:Waiting for incoming connection...?

导致不能进行后面的断点调试...

我的xdebug配置如下:

Directive    Local Value    Master Value
xdebug.auto_trace    Off    Off
xdebug.cli_color    0    0
xdebug.collect_assignments    Off    Off
xdebug.collect_includes    On    On
xdebug.collect_params    0    0
xdebug.collect_return    Off    Off
xdebug.collect_vars    Off    Off
xdebug.coverage_enable    On    On
xdebug.default_enable    On    On
xdebug.dump.COOKIE    no value    no value
xdebug.dump.ENV    no value    no value
xdebug.dump.FILES    no value    no value
xdebug.dump.GET    no value    no value
xdebug.dump.POST    no value    no value
xdebug.dump.REQUEST    no value    no value
xdebug.dump.SERVER    no value    no value
xdebug.dump.SESSION    no value    no value
xdebug.dump_globals    On    On
xdebug.dump_once    On    On
xdebug.dump_undefined    Off    Off
xdebug.extended_info    On    On
xdebug.file_link_format    no value    no value
xdebug.force_display_errors    Off    Off
xdebug.force_error_reporting    0    0
xdebug.halt_level    0    0
xdebug.idekey    PhpStorm    PhpStorm
xdebug.max_nesting_level    256    256
xdebug.max_stack_frames    -1    -1
xdebug.overload_var_dump    On    On
xdebug.profiler_aggregate    Off    Off
xdebug.profiler_append    Off    Off
xdebug.profiler_enable    Off    Off
xdebug.profiler_enable_trigger    Off    Off
xdebug.profiler_enable_trigger_value    no value    no value
xdebug.profiler_output_dir    /var/tmp/    /var/tmp/
xdebug.profiler_output_name    cachegrind.out.%p    cachegrind.out.%p
xdebug.remote_autostart    On    On
xdebug.remote_connect_back    Off    Off
xdebug.remote_cookie_expire_time    3600    3600
xdebug.remote_enable    On    On
xdebug.remote_handler    dbgp    dbgp
xdebug.remote_host    localhost    localhost
xdebug.remote_log    no value    no value
xdebug.remote_mode    req    req
xdebug.remote_port    9000    9000
xdebug.scream    Off    Off
xdebug.show_exception_trace    Off    Off
xdebug.show_local_vars    Off    Off
xdebug.show_mem_delta    Off    Off
xdebug.trace_enable_trigger    Off    Off
xdebug.trace_enable_trigger_value    no value    no value
xdebug.trace_format    0    0
xdebug.trace_options    0    0
xdebug.trace_output_dir    /var/tmp/    /var/tmp/
xdebug.trace_output_name    trace.%c    trace.%c
xdebug.var_display_max_children    128    128
xdebug.var_display_max_data    512    512
xdebug.var_display_max_depth    3    3

求赐教!

可能是chrome的插件有问题, 你可以参考下下面的官方文档使用的插件, 我用这个插件是可以正常调试的。

https://confluence.jetbrains.com/display/PhpStorm/Configure+Xdebug+Helper+for+Chrome+to+be+used+with+PhpStorm