今天在折騰使用phpstorm配置xdebug + chrmoe的斷點調試(想看配置方法的參考:http://www.it165.net/os/html/201505/12846.html).
配置完後,開始斷點調試,但是發現debugger面板一直輸出:
Waiting for incoming connection with ide key 18479
如下:
導致不能進行後面的斷點調試...
我的xdebug配置如下:
Directive Local Value Master Valuexdebug.auto_trace Off Offxdebug.cli_color 0 0xdebug.collect_assignments Off Offxdebug.collect_includes On Onxdebug.collect_params 0 0xdebug.collect_return Off Offxdebug.collect_vars Off Offxdebug.coverage_enable On Onxdebug.default_enable On Onxdebug.dump.COOKIE no value no valuexdebug.dump.ENV no value no valuexdebug.dump.FILES no value no valuexdebug.dump.GET no value no valuexdebug.dump.POST no value no valuexdebug.dump.REQUEST no value no valuexdebug.dump.SERVER no value no valuexdebug.dump.SESSION no value no valuexdebug.dump_globals On Onxdebug.dump_once On Onxdebug.dump_undefined Off Offxdebug.extended_info On Onxdebug.file_link_format no value no valuexdebug.force_display_errors Off Offxdebug.force_error_reporting 0 0xdebug.halt_level 0 0xdebug.idekey PhpStorm PhpStormxdebug.max_nesting_level 256 256xdebug.max_stack_frames -1 -1xdebug.overload_var_dump On Onxdebug.profiler_aggregate Off Offxdebug.profiler_append Off Offxdebug.profiler_enable Off Offxdebug.profiler_enable_trigger Off Offxdebug.profiler_enable_trigger_value no value no valuexdebug.profiler_output_dir /var/tmp/ /var/tmp/xdebug.profiler_output_name cachegrind.out.%p cachegrind.out.%pxdebug.remote_autostart On Onxdebug.remote_connect_back Off Offxdebug.remote_cookie_expire_time 3600 3600xdebug.remote_enable On Onxdebug.remote_handler dbgp dbgpxdebug.remote_host localhost localhostxdebug.remote_log no value no valuexdebug.remote_mode req reqxdebug.remote_port 9000 9000xdebug.scream Off Offxdebug.show_exception_trace Off Offxdebug.show_local_vars Off Offxdebug.show_mem_delta Off Offxdebug.trace_enable_trigger Off Offxdebug.trace_enable_trigger_value no value no valuexdebug.trace_format 0 0xdebug.trace_options 0 0xdebug.trace_output_dir /var/tmp/ /var/tmp/xdebug.trace_output_name trace.%c trace.%cxdebug.var_display_max_children 128 128xdebug.var_display_max_data 512 512xdebug.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
如下:
導致不能進行後面的斷點調試...
我的xdebug配置如下:
Directive Local Value Master Valuexdebug.auto_trace Off Offxdebug.cli_color 0 0xdebug.collect_assignments Off Offxdebug.collect_includes On Onxdebug.collect_params 0 0xdebug.collect_return Off Offxdebug.collect_vars Off Offxdebug.coverage_enable On Onxdebug.default_enable On Onxdebug.dump.COOKIE no value no valuexdebug.dump.ENV no value no valuexdebug.dump.FILES no value no valuexdebug.dump.GET no value no valuexdebug.dump.POST no value no valuexdebug.dump.REQUEST no value no valuexdebug.dump.SERVER no value no valuexdebug.dump.SESSION no value no valuexdebug.dump_globals On Onxdebug.dump_once On Onxdebug.dump_undefined Off Offxdebug.extended_info On Onxdebug.file_link_format no value no valuexdebug.force_display_errors Off Offxdebug.force_error_reporting 0 0xdebug.halt_level 0 0xdebug.idekey PhpStorm PhpStormxdebug.max_nesting_level 256 256xdebug.max_stack_frames -1 -1xdebug.overload_var_dump On Onxdebug.profiler_aggregate Off Offxdebug.profiler_append Off Offxdebug.profiler_enable Off Offxdebug.profiler_enable_trigger Off Offxdebug.profiler_enable_trigger_value no value no valuexdebug.profiler_output_dir /var/tmp/ /var/tmp/xdebug.profiler_output_name cachegrind.out.%p cachegrind.out.%pxdebug.remote_autostart On Onxdebug.remote_connect_back Off Offxdebug.remote_cookie_expire_time 3600 3600xdebug.remote_enable On Onxdebug.remote_handler dbgp dbgpxdebug.remote_host localhost localhostxdebug.remote_log no value no valuexdebug.remote_mode req reqxdebug.remote_port 9000 9000xdebug.scream Off Offxdebug.show_exception_trace Off Offxdebug.show_local_vars Off Offxdebug.show_mem_delta Off Offxdebug.trace_enable_trigger Off Offxdebug.trace_enable_trigger_value no value no valuexdebug.trace_format 0 0xdebug.trace_options 0 0xdebug.trace_output_dir /var/tmp/ /var/tmp/xdebug.trace_output_name trace.%c trace.%cxdebug.var_display_max_children 128 128xdebug.var_display_max_data 512 512xdebug.var_display_max_depth 3 3
求賜教!
可能是chrome的外掛程式有問題, 你可以參考下下面的官方文檔使用的外掛程式, 我用這個外掛程式是可以正常調試的。
https://confluence.jetbrains.com/display/PhpStorm/Configure+Xdebug+Helper+for+Chrome+to+be+used+with+PhpStorm