summaryrefslogtreecommitdiff
path: root/helix-dap
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-09-04 16:36:36 +0000
committerDmitry Sharshakov2021-09-04 16:36:36 +0000
commitdf0ea6674ad1cbcbe8ceffded427d1d8c57951c8 (patch)
tree3c73de463b3e4bd68764fca43dec7f2dd44d2ab4 /helix-dap
parent430c80ff2a09adf554e16052d9f478fdd49535b0 (diff)
examples: ensure target stopped by waiting for enter from user
Diffstat (limited to 'helix-dap')
-rw-r--r--helix-dap/examples/dap-dlv.rs5
-rw-r--r--helix-dap/examples/dap-lldb.rs5
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