on master help sign in
Add the debugger for Zig (#4492)
commitde5b100556ce4d9a2f739bd54904246f97dc6863 authorSora <dream@neoncity.dev> dateFri 28 Oct 2022, 03:19 (4 years ago) parentb4a3dd8
1 file changed+23
languages.toml+23
languages.toml+23
@@ -767,6 +767,29 @@ language-server = { command = "zls" }
767767indent = { tab-width = 4, unit = " " }
768768formatter = { command = "zig" , args = ["fmt", "--stdin"] }
769769
770+[language.debugger]
771+name = "lldb-vscode"
772+transport = "stdio"
773+command = "lldb-vscode"
774+
775+[[language.debugger.templates]]
776+name = "binary"
777+request = "launch"
778+completion = [ { name = "binary", completion = "filename" } ]
779+args = { console = "internalConsole", program = "{0}" }
780+
781+[[language.debugger.templates]]
782+name = "attach"
783+request = "attach"
784+completion = [ "pid" ]
785+args = { console = "internalConsole", pid = "{0}" }
786+
787+[[language.debugger.templates]]
788+name = "gdbserver attach"
789+request = "attach"
790+completion = [ { name = "lldb connect url", default = "connect://localhost:3333" }, { name = "file", completion = "filename" }, "pid" ]
791+args = { console = "internalConsole", attachCommands = [ "platform select remote-gdb-server", "platform connect {0}", "file {1}", "attach {2}" ] }
792+
770793[[grammar]]
771794name = "zig"
772795source = { git = "https://github.com/maxxnino/tree-sitter-zig", rev = "8d3224c3bd0890fe08358886ebf54fca2ed448a6" }