From 8fc48402953a9d91e5c05662c7fa6dfae8605fc9 Mon Sep 17 00:00:00 2001 From: adalessa Date: Sat, 4 Mar 2023 16:14:13 +0100 Subject: feat: improve dap --- lua/alpha/dap/configs/php.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lua/alpha/dap/configs/php.lua (limited to 'lua/alpha/dap/configs/php.lua') diff --git a/lua/alpha/dap/configs/php.lua b/lua/alpha/dap/configs/php.lua new file mode 100644 index 0000000..968bb9d --- /dev/null +++ b/lua/alpha/dap/configs/php.lua @@ -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}", + }, + }, +} -- cgit v1.2.3