debugger beta: Fix gdb/delve JSON data conversion from New Session Modal (#31501)
test that check's that each conversion works properly based on the adapter's config validation function. Co-authored-by: Zed AI \<ai@zed.dev\> Release Notes: - debugger beta: Fix bug where Go/GDB configuration's wouldn't work from NewSessionModal
This commit is contained in:
parent
b7c5540075
commit
b63cea1f17
5 changed files with 134 additions and 44 deletions
|
@ -307,10 +307,14 @@ impl DebugAdapter for GoDebugAdapter {
|
|||
let mut args = match &zed_scenario.request {
|
||||
dap::DebugRequest::Attach(attach_config) => {
|
||||
json!({
|
||||
"request": "attach",
|
||||
"mode": "debug",
|
||||
"processId": attach_config.process_id,
|
||||
})
|
||||
}
|
||||
dap::DebugRequest::Launch(launch_config) => json!({
|
||||
"request": "launch",
|
||||
"mode": "debug",
|
||||
"program": launch_config.program,
|
||||
"cwd": launch_config.cwd,
|
||||
"args": launch_config.args,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue