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:
- In Run/Debug Configurations I've set up a ‘PHP Remote Debug’ configuration.
- I've left ‘Filter debug connection by IDE key’ unchecked
- I've gone through the steps in Pre-Configuration including Validating the debugger configuration on the web server AND installing the Chrome extension
- Set a breakpoint in my PHP file locally.
- Started the remote debug run configuration
- 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
Please sign in to leave a comment.
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.
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