Skip to content

Instantly share code, notes, and snippets.

@mahansky
Last active October 28, 2020 14:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mahansky/5ad1ac697e8916e569250e91bea52189 to your computer and use it in GitHub Desktop.
Save mahansky/5ad1ac697e8916e569250e91bea52189 to your computer and use it in GitHub Desktop.
xdebug + phpstorm setup

PHP

[xdebug]
zend_extension="path/to/xdebug.so" # enable on demand
xdebug.default_enable=1
xdebug.remote_port=9001
xdebug.remote_host=127.0.0.1
xdebug.remote_connect_back=1
xdebug.remote_enable=1

PHPSTORM

Xdebug

Port: 9001

Can accept external connections: ✅

Force break #1: ❌

Force break #2: ❌

Start Listening for PHP Debug Connections

DBGp proxy

IDE Key: PHPSTORM

Port: 9001

Chrome

Xdebug helper: https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc

IDE Key: PHPSTORM

Enable on demand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment