my demo first config lua
This commit is contained in:
27
back/lua/alpha/dap/configs/php.lua
Normal file
27
back/lua/alpha/dap/configs/php.lua
Normal file
@@ -0,0 +1,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}",
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user