summaryrefslogtreecommitdiffstats
path: root/lua/debugging.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/debugging.lua')
-rw-r--r--lua/debugging.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/lua/debugging.lua b/lua/debugging.lua
index 82f073b..bb57624 100644
--- a/lua/debugging.lua
+++ b/lua/debugging.lua
@@ -18,6 +18,12 @@ dap.adapters.php = {
args = { '/usr/lib/node_modules/php-debug/out/phpDebug.js' }
}
+dap.adapters.rust_gdb = {
+ type = "executable",
+ command = "rust-gdb",
+ args = { "-i", "dap" }
+}
+
--
-- Configurations
--
@@ -33,6 +39,18 @@ dap.configurations.c = {
},
}
+dap.configurations.rust = {
+ {
+ name = "Launch",
+ type = "rust_gdb",
+ request = "launch",
+ program = function()
+ return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/target/debug', 'file')
+ end,
+ cwd = "${workspacefolder}",
+ },
+}
+
dap.configurations.php = {
{
name = "Listen for Xdebug",