diff options
author | Dmitry Sharshakov | 2021-08-23 18:11:45 +0000 |
---|---|---|
committer | Dmitry Sharshakov | 2021-08-23 18:11:45 +0000 |
commit | 3a5e044c8958d6407516c194eeeb3b8961c00632 (patch) | |
tree | e6f0a66f857e7ccabb7661ab2352452199b234e2 | |
parent | b3469df5bf79bae188d0e2d38aed182c5f47ff13 (diff) |
languages: support debug for Rust with LLDB
-rw-r--r-- | helix-term/src/application.rs | 1 | ||||
-rw-r--r-- | languages.toml | 5 |
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" |