MCPcopy Create free account
hub / github.com/PowerShell/DSC / check_debug

Function check_debug

archive/registry/src/main.rs:160–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158
159#[cfg(debug_assertions)]
160fn check_debug() {
161 if env::var("DEBUG_REGISTRY").is_ok() {
162 eprintln!("attach debugger to pid {} and press any key to continue", std::process::id());
163 loop {
164 let event = event::read().unwrap();
165 if let event::Event::Key(_key) = event {
166 break;
167 }
168 eprintln!("Unexpected event: {event:?}");
169 }
170 }
171}

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected