debugger: Add an action to copy debuggee info and initialization args (#32647)

Release Notes:

- Debugger Beta: added the `dev: copy debug adapter arguments` action to
help troubleshoot debug configurations.
This commit is contained in:
Cole Miller
2025-06-12 21:38:25 -04:00
committed by GitHub
parent 1078f929aa
commit f227c2ff0c
7 changed files with 52 additions and 20 deletions
@@ -469,14 +469,19 @@ async fn test_handle_start_debugging_request(
// We should preserve the original binary (params to spawn process etc.) except for launch params
// (as they come from reverse spawn request).
let mut original_binary = parent_session.read(cx).binary().clone();
let mut original_binary = parent_session.read(cx).binary().cloned().unwrap();
original_binary.request_args = StartDebuggingRequestArguments {
request: StartDebuggingRequestArgumentsRequest::Launch,
configuration: fake_config.clone(),
};
assert_eq!(
current_sessions[1].read(cx).session(cx).read(cx).binary(),
current_sessions[1]
.read(cx)
.session(cx)
.read(cx)
.binary()
.unwrap(),
&original_binary
);
})