languages: support debug for Rust with LLDB
This commit is contained in:
parent
b3469df5bf
commit
3a5e044c89
2 changed files with 6 additions and 0 deletions
|
@ -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 =
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue