Skip to content

Instantly share code, notes, and snippets.

@robertdown
Created September 20, 2021 06:13
Show Gist options
  • Save robertdown/47d4a5fb994b681de3002682d3e0e2cf to your computer and use it in GitHub Desktop.
Save robertdown/47d4a5fb994b681de3002682d3e0e2cf to your computer and use it in GitHub Desktop.
Use this when running remote connections in VSCode and connected to your docker instance to enable Debugging
{
// For use when using remote connection in VSCode and
// connected to your OpenEMR Docker container
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003,
"hostname": "0.0.0.0",
"pathMappings": {
"/var/www/localhost/htdocs/openemr": "${workspaceFolder}"
},
"ignore": [
"**/vendor/**/*.php"
]
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9003,
"runtimeArgs": [
"-dxdebug.start_with_request=yes"
],
"env": {
"XDEBUG_MODE": "debug,develop",
"XDEBUG_CONFIG": "client_port=${port}"
}
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment