-
-
Notifications
You must be signed in to change notification settings - Fork 13
Debuging
Madalin Ignisca edited this page Aug 27, 2021
·
4 revisions
This works on all OS, ensure to run latest Docker and VSCode.
Simply use F5 with the default launch configurations. Works out of the box.
! Important - project must be in localhost with project folder mounted in
/projects/workspace
. Do not forget to set your mappings.
! Does not work with WSL2
Run your scripts using the aliases phpdbgreq
or phpdbgcli
.
Debuging web requests for Laravel: phpdbgreq artisan serve --host=0.0.0.0
Debuging queue workers for Laravel: phpdgbcli artisan queue:work
For VSCode example launch configuration (works in any mode):
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003,
"stopOnEntry": true,
"pathMappings": {
"/projects/workspace": "${workspaceFolder}"
}
}
]
}
More info to follow up.