on master help sign in
languages: support debug for Rust with LLDB
commit3a5e044c8958d6407516c194eeeb3b8961c00632 authorDmitry Sharshakov <d3dx12.xx@gmail.com> dateMon 23 Aug 2021, 21:11 (5 years ago) parentb3469df
2 files changed+6
helix-term/src/application.rs+1 languages.toml+5
helix-term/src/application.rs+1
@@ -324,6 +324,7 @@ impl Application {
324324 .unwrap();
325325
326326 let (view, doc) = current!(self.editor);
327+ log::info!("{:?}", doc);
327328 let start = doc.text().line_to_char(line - 1) + column;
328329 if let Some(end_line) = end_line {
329330 let end =
languages.toml+5
@@ -19,6 +19,11 @@ config = """
1919
2020language-server = { command = "rust-analyzer" }
2121indent = { tab-width = 4, unit = " " }
22+debug-adapter = { name = "lldb", transport = "tcp", command = "lldb-vscode", args = [], port-arg = "-p {}" }
23+
24+[[language.debug-configs]]
25+console = "internalConsole"
26+program = "target/debug/rustdebug"
2227
2328[[language]]
2429name = "toml"