首頁 >後端開發 >php教程 >mysql - phpstorm配置debug:Waiting for incoming connection...?

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

WBOY
WBOY原創
2016-06-06 20:24:151735瀏覽

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

<code class="txt">Waiting for incoming connection with ide key 18479</code>

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

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

我的xdebug配置如下:

<code class="txt">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</code>

求赐教!

回复内容:

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

<code class="txt">Waiting for incoming connection with ide key 18479</code>

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

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

我的xdebug配置如下:

<code class="txt">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</code>

求赐教!

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

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

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn