Skip to content

Instantly share code, notes, and snippets.

@kmaxat
Created September 21, 2017 17:08
Show Gist options
  • Save kmaxat/862bab781981233d32f53a6309e52f02 to your computer and use it in GitHub Desktop.
Save kmaxat/862bab781981233d32f53a6309e52f02 to your computer and use it in GitHub Desktop.
{
//Xdebug with php 7.1 setup
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"serverSourceRoot": "/home/vagrant/Code/blackhole-todo",
"localSourceRoot": "/home/kmaxat/PhpstormProjects/blackhole-todo"
}
]
}
@Braunson
Copy link

serverSourceRoot and localSourceRoot are deprecated. Use pathMappings instead. Like so :)

        {
            "name": "Listen for XDebug on Homestead",
            "type": "php",
            "request": "launch",
            "pathMappings": {
                "/home/vagrant/braunson": "~/Documents/GitHub/braunson"
            },
            "port": 9000
        }

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