debugger: Add args argument to debugger launch config (#27953)
This also fixes a bug where debug cargo test code actions would debug all tests in a mod instead of a specific test Release Notes: - N/A
This commit is contained in:
parent
500964a6fa
commit
108ae0b5b0
15 changed files with 42 additions and 17 deletions
|
@ -79,7 +79,7 @@ impl DebugAdapter for GdbDebugAdapter {
|
|||
json!({"pid": attach_config.process_id})
|
||||
}
|
||||
dap::DebugRequestType::Launch(launch_config) => {
|
||||
json!({"program": launch_config.program, "cwd": launch_config.cwd, "stopOnEntry": config.stop_on_entry})
|
||||
json!({"program": launch_config.program, "cwd": launch_config.cwd, "stopOnEntry": config.stop_on_entry, "args": launch_config.args.clone()})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -94,6 +94,7 @@ impl DebugAdapter for GoDebugAdapter {
|
|||
"program": launch_config.program,
|
||||
"cwd": launch_config.cwd,
|
||||
"stopOnEntry": config.stop_on_entry,
|
||||
"args": launch_config.args
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -135,6 +135,7 @@ impl DebugAdapter for JsDebugAdapter {
|
|||
}
|
||||
DebugRequestType::Launch(launch) => {
|
||||
map.insert("program".into(), launch.program.clone().into());
|
||||
map.insert("args".into(), launch.args.clone().into());
|
||||
map.insert(
|
||||
"cwd".into(),
|
||||
launch
|
||||
|
|
|
@ -82,6 +82,7 @@ impl DebugAdapter for LldbDebugAdapter {
|
|||
}
|
||||
DebugRequestType::Launch(launch) => {
|
||||
map.insert("program".into(), launch.program.clone().into());
|
||||
map.insert("args".into(), launch.args.clone().into());
|
||||
map.insert(
|
||||
"cwd".into(),
|
||||
launch
|
||||
|
|
|
@ -118,6 +118,7 @@ impl DebugAdapter for PhpDebugAdapter {
|
|||
json!({
|
||||
"program": launch_config.program,
|
||||
"cwd": launch_config.cwd,
|
||||
"args": launch_config.args,
|
||||
"stopOnEntry": config.stop_on_entry,
|
||||
})
|
||||
}
|
||||
|
|
|
@ -130,6 +130,7 @@ impl DebugAdapter for PythonDebugAdapter {
|
|||
DebugRequestType::Launch(launch_config) => {
|
||||
json!({
|
||||
"program": launch_config.program,
|
||||
"args": launch_config.args,
|
||||
"subProcess": true,
|
||||
"cwd": launch_config.cwd,
|
||||
"redirectOutput": true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue