on master help sign in
examples: ensure target stopped by waiting for enter from user
df0ea66Dmitry Sharshakov
helix-dap/examples/dap-dlv.rs+5
@@ -82,6 +82,11 @@ pub async fn main() -> Result<()> {
82
82
83 println!("configurationDone: {:?}", client.configuration_done().await);
83 println!("configurationDone: {:?}", client.configuration_done().await);
84
84
85+ let mut _in = String::new();
86+ std::io::stdin()
87+ .read_line(&mut _in)
88+ .expect("Failed to read line");
89+
85 let threads = client.threads().await?;
90 let threads = client.threads().await?;
86 println!("threads: {:#?}", threads);
91 println!("threads: {:#?}", threads);
87 let bt = client
92 let bt = client
helix-dap/examples/dap-lldb.rs+5
@@ -84,6 +84,11 @@ pub async fn main() -> Result<()> {
84
84
85 println!("configurationDone: {:?}", client.configuration_done().await);
85 println!("configurationDone: {:?}", client.configuration_done().await);
86
86
87+ let mut _in = String::new();
88+ std::io::stdin()
89+ .read_line(&mut _in)
90+ .expect("Failed to read line");
91+
87 let threads = client.threads().await?;
92 let threads = client.threads().await?;
88 println!("threads: {:#?}", threads);
93 println!("threads: {:#?}", threads);
89 let bt = client
94 let bt = client