Xdebug 3 & PhpStorm 2020.2.4
Asked Answered
A

1

7

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
Aspidistra answered 3/12, 2020 at 14:47 Comment(4)
You shoudl provide more info: 1) Your OS 2) What are you trying to debug: a CLI script or a web page? 3) Show Xdebug section of the phpinfo() output captured in the same way as you are trying to debug. xdebug_info() output will print just that as well. 4) What Xdebug log has to say about it 5) Screenshots are welcome as well.Lodger
BTW, AFAIK the develop mode (xdebug.mode=develop) does not establish any debugger sessions. It's for runtime helpers/extra error info etc: xdebug.org/docs/develop . For actual debugging/breakpoints you need debug mode.Lodger
P.S. Xdebug 3 is fully supported from 2020.3 version only -- released today. The validation screen in 2020.2 may show not set values etc. See https://mcmap.net/q/1620864/-enabling-xdebug-in-phpstormLodger
Follow: #64776838Jacobus
A
9

Xdebug 3 is fully supported from 2020.3 version only.

Aspidistra answered 9/12, 2020 at 13:33 Comment(1)
Supporting documentation: jetbrains.com/phpstorm/whatsnew/2020-3 . Thank you very much @Aspidistra - thought I was losing my mind for a moment :)Isolationist

© 2022 - 2024 — McMap. All rights reserved.