
If you are debugging a website using a browser then get the relevant Xdebug extension for Chrome or Firefox. You can now set breakpoints in plugin-one/src/whatever.php and PhpStorm will stop on them.

The "/var/Note that if this is already selected, then the menu item does not exist and the menu item Stop Listening for PHP Debug Connections is in its place. The key bit for this article is that path mapping section. If I select the 'Run' menu and click 'Debug sitelog.module', I get some errors. Click “+ Add Content Root” add add /plugin-one => /var/www/html/plugin-one I have set the cookie in my browser using the Chrome extension, and I am listening for PHP debug connections, and I have set a breakpoint.main-app and then add plug-one to it as a “content root”: main-app/vendor/client/plugin-one is a symlink to. A time-out likely points this more towards the firewall.

It can be a Windows Firewall (or 'Defender') blocking it, or perhaps there is something else that blocks the connection. Which should be the IP address of your Windows machine. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Browser hangs even when no breakpoint is set in XDebug/PHPStorm.

This is done by setting up a repository in our composer.json that points to the relevant path using a symlink. main-app/vendor/client/plugin-one/, but set-up so that we can edit the original files and have main-app pick up the changes. plugin-one/ as a composer dependency of.
#Chrome phpstorm xdebug cookies code#
My project is laid out on disk like this:Īs you can see I have main-app and plugin-one which are the two sets of source code that I need to work on. I needed to get step debugging working in PhpStorm and this is the approach I took. The common ones are Chrome DevTools, VSCode, Eclipse, and IntelliJ. One project I’m working on has multiple separate parts in different git repositories that are brought into the main project using linked composer directories.
