Last active
September 17, 2022 09:22
-
-
Save vistar/363a15bdba86a3f90db2ec8578be654f to your computer and use it in GitHub Desktop.
Vscode settings for xdebug in docksal
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Listen for Xdebug", | |
"type": "php", | |
"request": "launch", | |
"port": 9000, | |
// server -> local | |
"pathMappings": { | |
"/var/www/web": "${workspaceFolder}/web" | |
}, | |
"xdebugSettings": { | |
"show_hidden": 1 | |
} | |
}, | |
{ | |
"name": "Launch currently open script", | |
"type": "php", | |
"request": "launch", | |
"program": "${file}", | |
"cwd": "${fileDirname}", | |
"port": 0, | |
"runtimeArgs": [ | |
"-dxdebug.start_with_request=yes" | |
], | |
"env": { | |
"XDEBUG_MODE": "debug,develop", | |
"XDEBUG_CONFIG": "client_port=${port}" | |
} | |
}, | |
{ | |
"name": "Launch Built-in web server", | |
"type": "php", | |
"request": "launch", | |
"runtimeArgs": [ | |
"-dxdebug.mode=debug", | |
"-dxdebug.start_with_request=yes", | |
"-S", | |
"localhost:0" | |
], | |
"program": "", | |
"cwd": "${workspaceRoot}", | |
"port": 9000, | |
"serverReadyAction": { | |
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started", | |
"uriFormat": "http://localhost:%s", | |
"action": "openExternally" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment