Skip to content

Instantly share code, notes, and snippets.

@kerasai
Created January 25, 2019 12:13
Show Gist options
  • Save kerasai/f180bcf45528753fdd1be9b39ef842d3 to your computer and use it in GitHub Desktop.
Save kerasai/f180bcf45528753fdd1be9b39ef842d3 to your computer and use it in GitHub Desktop.
Enables Xdebug CLI to be ran from the CLI
# Run one time, value must match value xdebug.idekey in the PHP config.
export XDEBUG_CONFIG="idekey=123"
export PHP_IDE_CONFIG="serverName=example.local"
# Toggle to enable/disable Xdebug.
export XDEBUG_CONFIG="remote_enable=1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment