summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-08-23 18:11:45 +0000
committerDmitry Sharshakov2021-08-23 18:11:45 +0000
commit3a5e044c8958d6407516c194eeeb3b8961c00632 (patch)
treee6f0a66f857e7ccabb7661ab2352452199b234e2
parentb3469df5bf79bae188d0e2d38aed182c5f47ff13 (diff)
languages: support debug for Rust with LLDB
-rw-r--r--helix-term/src/application.rs1
-rw-r--r--languages.toml5
2 files changed, 6 insertions, 0 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 1bb2df39..82bba076 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -324,6 +324,7 @@ impl Application {
.unwrap();
let (view, doc) = current!(self.editor);
+ log::info!("{:?}", doc);
let start = doc.text().line_to_char(line - 1) + column;
if let Some(end_line) = end_line {
let end =
diff --git a/languages.toml b/languages.toml
index d2b5cbde..756fc30b 100644
--- a/languages.toml
+++ b/languages.toml
@@ -19,6 +19,11 @@ config = """
language-server = { command = "rust-analyzer" }
indent = { tab-width = 4, unit = " " }
+debug-adapter = { name = "lldb", transport = "tcp", command = "lldb-vscode", args = [], port-arg = "-p {}" }
+
+[[language.debug-configs]]
+console = "internalConsole"
+program = "target/debug/rustdebug"
[[language]]
name = "toml"