Solve phpstorm cannot connect to xdebug3

Reference: https://stackoverflow.com/questions/65128251/xdebug-3-phpstorm-2020-2-4

Xdebug 3 is fully supported from 2020.3 version only.

The xdebug configuration is as follows:

[XDebug]
xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.discover_client_host = 1
xdebug.idekey="FOTO"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir ="/tmp/xdebug"
xdebug.trace_output_dir ="/tmp/xdebug"
xdebug.profiler_output_name = "xdebug.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_connect_back = 0
xdebug.remote_host = 10.0.2.1
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.remote_port = 9011
xdebug.remote_log = /tmp/remote_xdebug.log
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so
xdebug.auto_trace = 0
xdebug.log_level = 0
xdebug.collect_includes = 1
xdebug.collect_params = 1
xdebug.collect_return = 1
xdebug.default_enable = 1
xdebug.collect_assignments = 1
xdebug.collect_vars = 1
xdebug.show_local_vars = 1
xdebug.show_exception_trace = 0

Attachment: Solve the following error reported by xdebug3:

"Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-("

The xdebug configuration can be solved by adding the following line: 

xdebug.log_level = 0

 

Guess you like

Origin blog.csdn.net/JineD/article/details/112536245