aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSora2022-10-28 01:19:01 +0000
committerGitHub2022-10-28 01:19:01 +0000
commitde5b100556ce4d9a2f739bd54904246f97dc6863 (patch)
treedb04426c61ce6e555eac1846a1a91bd8deb484c9
parentb4a3dd8f89d6b3c1c973be2dfb2121c4b6cb501f (diff)
Add the debugger for Zig (#4492)
-rw-r--r--languages.toml23
1 files changed, 23 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index cc8f155b..0a87fad2 100644
--- a/languages.toml
+++ b/languages.toml
@@ -767,6 +767,29 @@ language-server = { command = "zls" }
indent = { tab-width = 4, unit = " " }
formatter = { command = "zig" , args = ["fmt", "--stdin"] }
+[language.debugger]
+name = "lldb-vscode"
+transport = "stdio"
+command = "lldb-vscode"
+
+[[language.debugger.templates]]
+name = "binary"
+request = "launch"
+completion = [ { name = "binary", completion = "filename" } ]
+args = { console = "internalConsole", program = "{0}" }
+
+[[language.debugger.templates]]
+name = "attach"
+request = "attach"
+completion = [ "pid" ]
+args = { console = "internalConsole", pid = "{0}" }
+
+[[language.debugger.templates]]
+name = "gdbserver attach"
+request = "attach"
+completion = [ { name = "lldb connect url", default = "connect://localhost:3333" }, { name = "file", completion = "filename" }, "pid" ]
+args = { console = "internalConsole", attachCommands = [ "platform select remote-gdb-server", "platform connect {0}", "file {1}", "attach {2}" ] }
+
[[grammar]]
name = "zig"
source = { git = "https://github.com/maxxnino/tree-sitter-zig", rev = "8d3224c3bd0890fe08358886ebf54fca2ed448a6" }