diff options
author | Dmitry Sharshakov | 2021-09-04 16:36:36 +0000 |
---|---|---|
committer | Dmitry Sharshakov | 2021-09-04 16:36:36 +0000 |
commit | df0ea6674ad1cbcbe8ceffded427d1d8c57951c8 (patch) | |
tree | 3c73de463b3e4bd68764fca43dec7f2dd44d2ab4 /helix-dap | |
parent | 430c80ff2a09adf554e16052d9f478fdd49535b0 (diff) |
examples: ensure target stopped by waiting for enter from user
Diffstat (limited to 'helix-dap')
-rw-r--r-- | helix-dap/examples/dap-dlv.rs | 5 | ||||
-rw-r--r-- | helix-dap/examples/dap-lldb.rs | 5 |
2 files changed, 10 insertions, 0 deletions
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 |