Created
September 20, 2021 06:13
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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