zed-godot-enhancedv1.2.0

Debugging

Launch or attach to a Godot game from the Zed Debug UI with .zed/debug.json.

The extension registers Godot’s debug adapter with Zed. Godot listens for it on port 6006 while the editor is open.

Launch and attach

Create .zed/debug.json in the project root:

[
  {
    "adapter": "godot",
    "label": "Godot (Launch)",
    "request": "launch"
  },
  {
    "adapter": "godot",
    "label": "Godot (Attach)",
    "request": "attach"
  }
]

Press F4 and pick a configuration. Launch starts the project’s main scene; attach connects to a game that is already running.

Breakpoints from the gutter, the breakpoint statement, stepping, the call stack, local and member variables and stopping the game work with Zed 1.31 and Godot 4.7.

Which scene

scene accepts:

  • "main" (default): the project’s main scene.
  • "current": the scene open in the Godot editor, not the file open in Zed.
  • A path such as "res://levels/level_1.tscn": that scene. Use this to debug a specific scene.

Without a game window

"playArgs": ["--headless"] passes --headless to the game, so it runs without opening a window. Breakpoints work as usual. additional_options is not passed to the game.

Project path

project is optional. Left out, it is the workspace root. A relative path resolves against the workspace root, so a Godot project in a subfolder works with "project": "game".

Options

Zed completes these keys from the extension’s schema:

Key Meaning
scene main, current or a scene path, see above
host, port Debug adapter address, default 127.0.0.1:6006
platform, device Target platform and device
timeout Connection timeout
playArgs Extra command-line arguments for the game
debug_collisions, debug_paths, debug_navigation, debug_avoidance Godot’s debug drawing
profiling Start with the profiler
disable_vsync, fixed_fps, time_scale Frame timing
additional_options Further Godot options

Example:

[
  {
    "adapter": "godot",
    "label": "Main scene, collisions visible",
    "request": "launch",
    "scene": "res://main.tscn",
    "debug_collisions": true,
    "playArgs": ["--verbose"]
  }
]

From a task

A Zed task whose command is godot becomes a debug scenario through the task locator: --path sets project, a .tscn or .scn argument sets scene, and the remaining arguments go to playArgs.

Edit this page on GitHub · Docs for v1.2.0