codex - 💡(How to fix) Fix IDE Extension: gated VS Code debugger integration (inspect/control) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17220Fetched 2026-04-10 03:43:47
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2

Root Cause

I’m not posting a raw patch because I’m not sure the packaged IDE extension code/build artifacts are under a public open-source source license, and I’d rather avoid posting a diff that may not be appropriate to publish.

Fix Action

Fix / Workaround

I’m not posting a raw patch because I’m not sure the packaged IDE extension code/build artifacts are under a public open-source source license, and I’d rather avoid posting a diff that may not be appropriate to publish.

RAW_BUFFERClick to expand / collapse

What variant of Codex are you using?

IDE Extension

What feature would you like to see?

I’d like to request optional VS Code debugger integration for the Codex IDE Extension.

The main idea is to let Codex inspect real runtime state during explicit debugging tasks by using the VS Code debugger APIs and the workspace’s existing launch configuration entries, while keeping the feature strongly gated and off by default.

Proposed behavior

Suggested setting:

  • chatgpt.debuggerRollout: "off" | "inspect" | "control"

Suggested semantics:

  • off: debugger integration disabled
  • inspect: read-only debugger inspection only
  • control: allow launch/control operations for explicit debugging tasks

Why this would help

Some problems are runtime problems rather than static code problems. Right now Codex can reason about source code, but it cannot directly start and inspect an already paused debug session in the IDE.

That means it cannot easily:

  • inspect paused sessions
  • read a stack trace
  • inspect scopes and variables
  • evaluate expressions in a paused frame
  • inspect breakpoints
  • use an existing VS Code launch configuration
  • step through code for explicit debugging tasks

This would be especially useful for:

  • logic bugs
  • unexpected runtime state
  • stepping through a repro with the user
  • debugging small sample workspaces directly inside VS Code

Suggested capability split

Read-only inspect mode:

  • list debug sessions
  • inspect current debugger state
  • wait for stop events
  • get stack traces
  • get scopes
  • get variables
  • evaluate expressions in the paused frame
  • read console output
  • list breakpoints

control mode:

  • list launch configurations
  • start from an existing launch configuration
  • stop
  • continue
  • pause
  • step over / step into / step out
  • add/remove breakpoints

Suggested guardrails

  • keep the feature off by default
  • only use debugger capabilities for explicit debugging or runtime-investigation tasks
  • prefer inspecting an already paused session before starting a new one

Consider:

  • only start from existing launch.json / launch configuration entries
  • do not have Codex create, edit, or rewrite launch.json

Expected UX

A reasonable behavior model would be:

  • in inspect mode, Codex can help analyze an already paused session but cannot launch or step
  • in control mode, Codex can use the existing VS Code debugger workflow when the task is clearly about debugging
  • if there is exactly one paused session, inspection should reuse it rather than starting another session

Additional information

I validated a local prototype privately against the VS Code extension host in a small sample workspace.

The validation covered:

  • rollout gating for off, inspect, and control
  • discovery of an existing launch configuration
  • launching a Node debug session from that configuration
  • stopping on entry / on a debugger statement
  • reading stack traces, scopes, variables, and expressions
  • stepping through code
  • listing, adding, and removing breakpoints
  • capturing console output with debugger noise filtered out

I’m not posting a raw patch because I’m not sure the packaged IDE extension code/build artifacts are under a public open-source source license, and I’d rather avoid posting a diff that may not be appropriate to publish.

If this is in scope, I’m happy to share a higher-level design outline and validation notes.

Additional information

No response

extent analysis

TL;DR

To integrate the VS Code debugger with the Codex IDE Extension, implement a feature toggle with "off", "inspect", and "control" modes, utilizing the VS Code debugger APIs and existing launch configurations.

Guidance

  • Implement a setting chatgpt.debuggerRollout with options "off", "inspect", and "control" to gate the feature.
  • In "inspect" mode, allow read-only debugger inspection, including listing debug sessions, inspecting current debugger state, and evaluating expressions in a paused frame.
  • In "control" mode, enable launch and control operations, such as starting from an existing launch configuration, stepping through code, and adding/removing breakpoints.
  • Ensure the feature is off by default and only use debugger capabilities for explicit debugging or runtime-investigation tasks.

Example

No code snippet is provided due to the lack of specific implementation details in the issue.

Notes

The implementation should consider the suggested guardrails, such as preferring inspection of already paused sessions and not creating, editing, or rewriting launch.json files.

Recommendation

Apply a workaround by implementing the proposed feature toggle and integrating the VS Code debugger APIs, as this would provide the desired functionality while maintaining control over the feature's rollout.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING