on master help sign in
examples: make examples identical
36fb8d1Dmitry Sharshakov
helix-dap/examples/dap-dlv.rs+6−2
@@ -79,8 +79,12 @@ pub async fn main() -> Result<()> {
79 from_value(stopped_event.recv().await.unwrap().body.unwrap()).unwrap();
79 from_value(stopped_event.recv().await.unwrap().body.unwrap()).unwrap();
80 println!("stopped: {:?}", stop);
80 println!("stopped: {:?}", stop);
81
81
82+ let threads = client.threads().await?;
82− println!("threads: {:#?}", client.threads().await);
83+ println!("threads: {:#?}", threads);
84+ let bt = client
85+ .stack_trace(threads[0].id)
86+ .await
83− let bt = client.stack_trace(1).await.expect("expected stack trace");
87+ .expect("expected stack trace");
84 println!("stack trace: {:#?}", bt);
88 println!("stack trace: {:#?}", bt);
85 let scopes = client
89 let scopes = client
86 .scopes(bt.0[0].id)
90 .scopes(bt.0[0].id)