aboutsummaryrefslogtreecommitdiff
path: root/helix-dap/examples
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-08-14 11:23:19 +0000
committerBlaž Hrastnik2021-08-20 04:43:54 +0000
commitf92fb966c086b421b49a57d98ba21eedd56a99d5 (patch)
tree3bef9aa47aacb29d940aa84fcb0affa888784f83 /helix-dap/examples
parentae321592479545b3d86319daf2527c76ba46c0c4 (diff)
working lldb example
Diffstat (limited to 'helix-dap/examples')
-rw-r--r--helix-dap/examples/dap-lldb.rs6
1 files changed, 3 insertions, 3 deletions
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();