From f92fb966c086b421b49a57d98ba21eedd56a99d5 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Sat, 14 Aug 2021 14:23:19 +0300 Subject: working lldb example --- helix-dap/examples/dap-lldb.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'helix-dap/examples/dap-lldb.rs') diff --git a/helix-dap/examples/dap-lldb.rs b/helix-dap/examples/dap-lldb.rs index ee503a23..97d842ab 100644 --- a/helix-dap/examples/dap-lldb.rs +++ b/helix-dap/examples/dap-lldb.rs @@ -57,7 +57,7 @@ pub async fn main() -> Result<()> { "/tmp/cdebug/main.c".to_owned(), vec![SourceBreakpoint { line: 6, - column: Some(4), + column: Some(2), condition: None, hit_condition: None, log_message: None, @@ -82,7 +82,7 @@ pub async fn main() -> Result<()> { let threads = client.threads().await?; println!("threads: {:#?}", threads); let bt = client - .stack_trace(threads[2].id) + .stack_trace(threads[0].id) .await .expect("expected stack trace"); println!("stack trace: {:#?}", bt); @@ -93,7 +93,7 @@ pub async fn main() -> Result<()> { println!("scopes: {:#?}", scopes); println!( "vars: {:#?}", - client.variables(scopes[1].variables_reference).await + client.variables(scopes[0].variables_reference).await ); let mut _in = String::new(); -- cgit v1.2.3-70-g09d2