Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be πŸ“–

External Debug Attach Plugin

An asset by MartinWang
The page banner background of a mountain and forest
External Debug Attach Plugin hero image

Quick Information

0 ratings
External Debug Attach Plugin icon image
MartinWang
External Debug Attach Plugin

One-click Run + Attach Debug to external IDE for Godot Editor. Supports VS Code, Cursor, and AntiGravity. Features: one-click to run game and attach debugger, optional wait for debugger to never miss initialization breakpoints, auto-detect IDE and solution paths, keyboard shortcut support (Alt+F5). Windows only.

Supported Engine Version
4.3
Version String
1.0.0
License Version
MIT
Support Level
community
Modified Date
2 months ago
Git URL
Issue URL

External Debug Attach Plugin

English | δΈ­ζ–‡

One-click Run + Attach Debug to external IDE for Godot Editor.

Features

  • πŸš€ One-click to run game and attach debugger
  • πŸ”§ Supports VS Code, Cursor, and AntiGravity
  • ⏳ Optional wait for debugger (never miss initialization breakpoints)
  • 🎯 Auto-detect IDE and solution paths
  • ⌨️ Keyboard shortcut support: Alt+F5

Installation

  1. Copy the addons/external_debug_attach/ folder to your Godot project.
  2. Rebuild your C# project (ensure the plugin compiles successfully).
  3. In Godot Editor: Go to Project β†’ Project Settings β†’ Plugins.
  4. Enable the "External Debug Attach" plugin.

Configuration

Go to Editor β†’ Editor Settings and find the "External Debug Attach" section:

Setting Description
IDE Type Select IDE: VSCode, Cursor, or AntiGravity
VS Code Path Path to VS Code executable (leave empty to auto-detect)
Cursor Path Path to Cursor executable (leave empty to auto-detect)
AntiGravity Path Path to AntiGravity executable (leave empty to auto-detect)

Usage

  1. Ensure configurations are correct.
  2. Click the 🐞 Run + Attach Debug icon in the Godot Editor toolbar (or press Alt+F5).
  3. The plugin will automatically:
    • Run the project.
    • Detect the Godot game process PID.
    • Launch your IDE and attach the debugger to that PID.

Waiting for Debugger (Autoload)

To ensure you don't miss breakpoints during initialization (e.g., _Ready), the plugin automatically registers a DebugWait autoload when enabled.

When the plugin is active:

  • The game will pause at startup, showing a "Waiting for debugger..." overlay.
  • It automatically resumes once the debugger attaches.
  • You can press ESC to skip waiting.
  • It times out and resumes automatically after 30 seconds.

IDE Support

VS Code

  • Automatically generates/updates .vscode/launch.json.
  • Requires the C# extension.
  • Automatically sends F5 to the VS Code window to start debugging.

Cursor

  • Same as VS Code (uses the same debugger configuration).
  • Automatically detects Cursor installation.

AntiGravity

  • Same as VS Code (uses the same debugger configuration).
  • Automatically detects AntiGravity installation.

Troubleshooting

Process Not Found (PID)

  • Ensure the project is built with C#.
  • Try increasing the Attach Delay Ms.

IDE Fails to Attach

  • Ensure the C# extension is installed.
  • Manually select the ".NET Attach (Godot)" configuration in your IDE.

Known Limitations

  • Restart Godot After Debugging: Due to a known issue Godot #78513, reloading .NET assemblies often fails after a debug session, causing errors on the next run. The plugin will show a reminder popup if this error is detected, suggesting a restart.
  • Windows Only: Currently uses WMI for process detection, so only Windows is supported.

License

MIT License

One-click Run + Attach Debug to external IDE for Godot Editor. Supports VS Code, Cursor, and AntiGravity. Features: one-click to run game and attach debugger, optional wait for debugger to never miss initialization breakpoints, auto-detect IDE and solution paths, keyboard shortcut support (Alt+F5). Windows only.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
External Debug Attach Plugin icon image
MartinWang
External Debug Attach Plugin

One-click Run + Attach Debug to external IDE for Godot Editor. Supports VS Code, Cursor, and AntiGravity. Features: one-click to run game and attach debugger, optional wait for debugger to never miss initialization breakpoints, auto-detect IDE and solution paths, keyboard shortcut support (Alt+F5). Windows only.

Supported Engine Version
4.3
Version String
1.0.0
License Version
MIT
Support Level
community
Modified Date
2 months ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers