Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
Quick Information
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.
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
- Copy the
addons/external_debug_attach/folder to your Godot project. - Rebuild your C# project (ensure the plugin compiles successfully).
- In Godot Editor: Go to Project β Project Settings β Plugins.
- 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
- Ensure configurations are correct.
- Click the π Run + Attach Debug icon in the Godot Editor toolbar (or press
Alt+F5). - 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
F5to 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
Quick Information
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.