aboutsummaryrefslogtreecommitdiff
path: root/helix-dap
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-08-14 13:36:06 +0000
committerBlaž Hrastnik2021-08-20 04:43:54 +0000
commit36fb8d1b1ab9f5e0c242e2d167bfaa91f41b7466 (patch)
tree3d2ee2e2171611dcbfe6441dd46ed57e13fb4258 /helix-dap
parentf92fb966c086b421b49a57d98ba21eedd56a99d5 (diff)
examples: make examples identical
Diffstat (limited to 'helix-dap')
-rw-r--r--helix-dap/examples/dap-dlv.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/helix-dap/examples/dap-dlv.rs b/helix-dap/examples/dap-dlv.rs
index de8c2e02..cb920e32 100644
--- a/helix-dap/examples/dap-dlv.rs
+++ b/helix-dap/examples/dap-dlv.rs
@@ -79,8 +79,12 @@ pub async fn main() -> Result<()> {
from_value(stopped_event.recv().await.unwrap().body.unwrap()).unwrap();
println!("stopped: {:?}", stop);
- println!("threads: {:#?}", client.threads().await);
- let bt = client.stack_trace(1).await.expect("expected stack trace");
+ let threads = client.threads().await?;
+ println!("threads: {:#?}", threads);
+ let bt = client
+ .stack_trace(threads[0].id)
+ .await
+ .expect("expected stack trace");
println!("stack trace: {:#?}", bt);
let scopes = client
.scopes(bt.0[0].id)