mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-04 04:13:21 +01:00
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:
1 parent
1078f929aa
commit
f227c2ff0c
7 files changed
+52
-20
No files matched your search
@@ -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
|
||||
);
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user