diff --git a/.vscode/launch.json b/.vscode/launch.json index 618207f3..d87ce482 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,18 +1,22 @@ { - "version": "0.2.0", - "configurations": [ - { - "type": "lldb", - "request": "launch", - "name": "Cargo launch", - "cargo": { - "cwd": "${workspaceFolder}/codex-rs", - "args": [ - "build", - "--bin=codex-tui" - ] - }, - "args": [] - } - ] + "version": "0.2.0", + "configurations": [ + { + "type": "lldb", + "request": "launch", + "name": "Cargo launch", + "cargo": { + "cwd": "${workspaceFolder}/codex-rs", + "args": ["build", "--bin=codex-tui"] + }, + "args": [] + }, + { + "type": "lldb", + "request": "attach", + "name": "Attach to running codex CLI", + "pid": "${command:pickProcess}", + "sourceLanguages": ["rust"] + } + ] }