1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
local dap = require("dap") dap.adapters.php = { type = "executable", command = "php-debug-adapter", } dap.configurations.php = { { type = "php", request = "launch", name = "Laravel", port = 9003, pathMappings = { ["/var/www/html"] = "${workspaceFolder}", }, }, { type = "php", request = "launch", name = "Symfony", port = 9003, pathMappings = { ["/app"] = "${workspaceFolder}", }, }, }