Remote debugging in PHPStorm?

I'm trying to get a simple PHP remote debug in PHPStorm 2022.2.3 up and running but nothing is happening. Here's what I've done:

  1. In Run/Debug Configurations I've set up a ‘PHP Remote Debug’ configuration.
  2. I've left ‘Filter debug connection by IDE key’ unchecked
  3. I've gone through the steps in Pre-Configuration including Validating the debugger configuration on the web server AND installing the Chrome extension
  4. Set a breakpoint in my PHP file locally.
  5. Started the remote debug run configuration
  6. Visited my remote php file at https://staging.4x4tyres.co.uk/test.php in Chrome with ‘Debug’ activated in the extension toolbar

Nothing seems to happen, the PHP file just runs without breaking.

I'm obviously doing something wrong, do I need to do some configuration on my router to port forward traffic to port 9003 to my Mac for example on my local network?

Any help appreciated, thanks

 

0
2 comments

Hello Kevin,

Have you tried the steps from the following documentation page for remote debugging: https://www.jetbrains.com/help/phpstorm/remote-debugging-via-ssh-tunnel.html? You can also refer to the following post from the Xdebug author: https://derickrethans.nl/debugging-with-xdebug-and-firewalls.html.

1

Hi Anastasiia, I hadn't seen those articles, thank you for the references, I will give them a try and come back here if I have any further issues, thanks again.

Kevin

0

Please sign in to leave a comment.