examples: ensure target stopped by waiting for enter from user
commitdf0ea6674ad1cbcbe8ceffded427d1d8c57951c8
authorDmitry Sharshakov <d3dx12.xx@gmail.com>
dateSat 4 Sep 2021, 19:36 (5 years ago)
parent430c80f
helix-dap/examples/dap-dlv.rs+5
@@ -82,6 +82,11 @@ pub async fn main() -> Result<()> {
8282
8383 println!("configurationDone: {:?}", client.configuration_done().await);
8484
85+ let mut _in = String::new();
86+ std::io::stdin()
87+ .read_line(&mut _in)
88+ .expect("Failed to read line");
89+
8590 let threads = client.threads().await?;
8691 println!("threads: {:#?}", threads);
8792 let bt = client
helix-dap/examples/dap-lldb.rs+5
@@ -84,6 +84,11 @@ pub async fn main() -> Result<()> {
8484
8585 println!("configurationDone: {:?}", client.configuration_done().await);
8686
87+ let mut _in = String::new();
88+ std::io::stdin()
89+ .read_line(&mut _in)
90+ .expect("Failed to read line");
91+
8792 let threads = client.threads().await?;
8893 println!("threads: {:#?}", threads);
8994 let bt = client