The workflow that I've set:
- Use something like Xdebug helper.
- Configure it to use PhpStorm IDE Key.
When you want to debug:
- Activate Xdebug Helper (Mark
Debug
)
- Go to PhpStorm and
Run > Start listening for PHP Debug Connections
- Put a breakpoint at your code
- Refresh your page in Chrome (or go to another one, just make a request).
Basically, the Xdebug Helper will be your trigger. If you disable it, PhpStorm no longer will debug your code.
If you don't want to relay on an extension, you can go to your Xdebug config and set:
xdebug.idekey=PHPSTORM
xdebug.remote_autostart=1
And "Start listening for PHP Debug Connections" will be your trigger.