Debugging CLI Scripts with Xdebug

· Read in about 1 min · (34 Words)

So you’ve set up your IDE to debug your webapp. Cool. It’s time to set it up for command line scripts too. No worries, it’s going to be a whole lot faster.

export XDEBUG_CONFIG="idekey=XDEBUG_PHPSTORM"