languages: support debug for Rust with LLDB

pull/574/head
Dmitry Sharshakov 3 years ago
parent b3469df5bf
commit 3a5e044c89
No known key found for this signature in database
GPG Key ID: 471FD32E15FD8473

@ -324,6 +324,7 @@ impl Application {
.unwrap(); .unwrap();
let (view, doc) = current!(self.editor); let (view, doc) = current!(self.editor);
log::info!("{:?}", doc);
let start = doc.text().line_to_char(line - 1) + column; let start = doc.text().line_to_char(line - 1) + column;
if let Some(end_line) = end_line { if let Some(end_line) = end_line {
let end = let end =

@ -19,6 +19,11 @@ config = """
language-server = { command = "rust-analyzer" } language-server = { command = "rust-analyzer" }
indent = { tab-width = 4, unit = " " } 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]] [[language]]
name = "toml" name = "toml"

Loading…
Cancel
Save