Skip to content

Instantly share code, notes, and snippets.

@davidjguru
Created October 16, 2021 17:32
Show Gist options
  • Save davidjguru/27fa70fb72c01d72703cefe286069c6b to your computer and use it in GitHub Desktop.
Save davidjguru/27fa70fb72c01d72703cefe286069c6b to your computer and use it in GitHub Desktop.
Debugging from VSCode: some launch.json example files
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"hostname": "0.0.0.0",
"port": 9000,
"pathMappings": {
"/var/www/html": "${workspaceRoot}"
}
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}
{
"version": "0.2.0",
"configurations": [
{
"name": "Packt Bash-Debug",
"type": "bashdb",
"request": "launch",
"program": "${command:SelectScriptName}",
"commandLineArguments": "",
"linux": {
"bashPath": "bash"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment