phpstorm unable to establish connection with xdebug

I recently reinstalled PHP, and noticed that xdebug would not work from within phpstorm.

Getting the message “Connection was not establish”.

Connection was not established. Cannot start debugger session with ‘Xdebug 3.2.0’

The way to fix that, was just to ensure that we’re using the proper port.

Xdebug 3.x, uses port 9003. Where as Xdebug 2.x used 9000.

To fix this, change your phpStorm preferences for the listening port to 9003.

PhpStorm -> Settings -> PHP -> debug -> port and set to 9003.

Debug port: 9003

Posted

in

by

Tags:

Comments

One response to “phpstorm unable to establish connection with xdebug”

  1. Frank Avatar
    Frank

    Thank you. It helped

Leave a Reply

Your email address will not be published. Required fields are marked *