diff options
Diffstat (limited to 'helix-dap')
-rw-r--r-- | helix-dap/examples/dap-dlv.rs | 8 |
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) |