Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xdebug 3 & PhpStorm 2020.2.4

I get this error when using Xdebug version 3 with PhpStorm version 2020.2.4 :

Connection was not established. 
Cannot start debugger session with 'Xdebug 3.0.0' Validate installation

php.ini Config:

xdebug.mode=develop
xdebug.start_with_request=yes
xdebug.client_port=9003
like image 668
Mateo Avatar asked Dec 03 '20 14:12

Mateo


People also ask

What is Xdebug used for?

Xdebug uses the DBGp debugging protocol and gives debugging and profiling capabilities. It allows us to add breakpoints and stop the code execution at every breakpoint to see variables output in only one code iteration. So Xdebug lets you save your time, which is otherwise lost in code debugging.

How do I get rid of Xdebug 3?

As of Xdebug 3, it is possible to disable the Xdebug completely by setting the option xdebug. mode to off , or by setting the environment variable XDEBUG_MODE=off . It is very easy to disable Xdebug just for composer, by aliasing composer . You can add the alias to your $HOME/.

What is Xdebug port?

Port 9003 is the default for both Xdebug and the Command Line Debug Client.

How do I know if Xdebug is working?

Verify that Xdebug is properly running by checking again with phpinfo() or php -v as explained above. Note that 9003 is the default port. If this port is used by another service on your system, change it to an unused port. After adding these settings, restart your webserver again.


1 Answers

Xdebug 3 is fully supported from 2020.3 version only.

like image 114
Mateo Avatar answered Oct 24 '22 18:10

Mateo