Skip to content

Instantly share code, notes, and snippets.

@ziadoz
Created July 22, 2017 13:32
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save ziadoz/9cc5c93cd77bf6472e1494caa0b83953 to your computer and use it in GitHub Desktop.
Save ziadoz/9cc5c93cd77bf6472e1494caa0b83953 to your computer and use it in GitHub Desktop.
Using XDebug in Atom Editor

Using XDebug in Atom Editor

Install the XDebug plugin for Atom and then add the following to the config.cson file (Atom > Config…):

"php-debug":
  PathMaps: [
    "remotepath;localpath"
    "/server/path/to/project/;/local/path/to/project/"
  ]
  ServerPort: 9001

Note: The trailing slashes and full paths are important, or breakpoints will be ignored. The default port is 9000. Use 9001 to avoid clashes with PHP-FPM.

Install the Chrome XDebug Helper extension and set the IDE key in the options to the value in your /xdebug.ini. You can then click on the extention to enable or disable XDebug.

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