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
LazyOne
  • 158,824
  • 45
  • 388
  • 391
Mateo
  • 173
  • 2
  • 7
  • 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. – LazyOne Dec 03 '20 at 14:53
  • 1
    BTW, AFAIK the `develop` mode (`xdebug.mode=develop`) does not establish any debugger sessions. It's for runtime helpers/extra error info etc: https://xdebug.org/docs/develop . For actual debugging/breakpoints you need `debug` mode. – LazyOne Dec 03 '20 at 15:02
  • 6
    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://stackoverflow.com/a/65091404/783119 – LazyOne Dec 03 '20 at 15:04
  • Follow: https://stackoverflow.com/questions/64776338/xdebug-3-the-setting-xdebug-remote-has-been-renamed-see-the-upgrading-g/65407343#65407343 – Kevin Black Dec 22 '20 at 10:55

1 Answers1

9

Xdebug 3 is fully supported from 2020.3 version only.

Mateo
  • 173
  • 2
  • 7
  • Supporting documentation: https://www.jetbrains.com/phpstorm/whatsnew/2020-3/ . Thank you very much @Mateo - thought I was losing my mind for a moment :) – mikey Dec 16 '20 at 05:15