From df0ea6674ad1cbcbe8ceffded427d1d8c57951c8 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Sat, 4 Sep 2021 19:36:36 +0300 Subject: examples: ensure target stopped by waiting for enter from user --- helix-dap/examples/dap-dlv.rs | 5 +++++ helix-dap/examples/dap-lldb.rs | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'helix-dap') diff --git a/helix-dap/examples/dap-dlv.rs b/helix-dap/examples/dap-dlv.rs index eecc4318..dacc7045 100644 --- a/helix-dap/examples/dap-dlv.rs +++ b/helix-dap/examples/dap-dlv.rs @@ -82,6 +82,11 @@ pub async fn main() -> Result<()> { println!("configurationDone: {:?}", client.configuration_done().await); + let mut _in = String::new(); + std::io::stdin() + .read_line(&mut _in) + .expect("Failed to read line"); + let threads = client.threads().await?; println!("threads: {:#?}", threads); let bt = client diff --git a/helix-dap/examples/dap-lldb.rs b/helix-dap/examples/dap-lldb.rs index 2022ef48..ae18b214 100644 --- a/helix-dap/examples/dap-lldb.rs +++ b/helix-dap/examples/dap-lldb.rs @@ -84,6 +84,11 @@ pub async fn main() -> Result<()> { println!("configurationDone: {:?}", client.configuration_done().await); + let mut _in = String::new(); + std::io::stdin() + .read_line(&mut _in) + .expect("Failed to read line"); + let threads = client.threads().await?; println!("threads: {:#?}", threads); let bt = client -- cgit v1.2.3-70-g09d2