godot-debugging
Skill8 starsChanged 5 months agoMITView on GitHub
Debugging workflow for Godot 4.x: print vs push_error, editor output window, debugger panel, profiling with built-in profiler, network debugging, export/build troubleshooting. Use when debugging Godot games or resolving Godot-specific errors.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- jame581/GodotPromptertheir own version, first seen Oct 21, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- jame581/GodotPrompter★ 870same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- godot-47-migrationSkill
- godot-animationSkill
- godot-architectureSkill
- godot-audioSkill
- godot-brainstormingSkill
- godot-code-reviewSkill
- godot-csharp-patternsSkill
- godot-dialog-systemsSkill
- godot-gdscript-patternsSkill
- godot-headless-workflowSkill
- godot-i18nSkill
- godot-inputSkill
- godot-inventory-economySkill
- godot-networkingSkill
- godot-performanceSkill
- godot-physicsSkill
- godot-project-setupSkill
- godot-save-systemsSkill
- godot-shaders-vfxSkill
- godot-state-managementSkill
- godot-uiSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 132
Fix: Check node type and available properties, use has_method() or is() checks
- Distinctive: line 136
Fix: Verify signal exists on source node, check method signature matches
- Distinctive: line 203
When the MCP bridge is running (Phase 2), these tools provide live debugging capabilities:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Godot Debugging Guide
Comprehensive debugging workflow and common issue resolution for Godot 4.x.
Output Methods
print() vs push_error() vs push_warning()
# print() — General output, filtered in editor output
print("Debug: position = ", position)
print("Debug: player health = ", player_health)
# printf-style formatting
printf("Player %s has %d health", player_name, health)
# push_error() — Shows in red, includes file and line number
push_error("Failed to load resource: ", resource_path)
# push_warning() — Shows in yellow, non-fatal issues
push_warning("Missing animation for state: ", state)
# load() returns null on failure — check before use
var data = load(risky_path)
if data == null:
push_error("Could not load resource at: %s" % risky_path)
# Or with ResourceLoader for error codes
var err, data = ResourceLoader.load_interactive(risky_path)
if err != OK:
push_error("Failed to load: %s (error code %d)" % [risky_path, err])Editor Output Window
Access via Window > Debugger or Debug > Start Debugging. The output panel shows:
- Standard print output (gray)
- Warnings (yellow)
- Errors (red) with file/line info
- Custom logger messages
Debugger Panel
Built-in Debugger Features
- Scene Tree — Visual tree of current scene with property inspection
- Resources — List of loaded resources, check for leaks
- Profiler — CPU and GPU usage breakdown
- Remote Transform — Edit node properties in running scenes
- Network Profiler — Monitor multiplayer traffic
Remote Debugging
# Connect to remote scene tree from editor
# When running in debug mode (F6), the editor connects automatically
# Access remote nodes
func get_remote_node(path: String):
var node = get_node(path) # Works on local and remote
return nodeProfiling Workflow
CPU Profiler
Profile > Start Profiling in the editor
Then view: Profile > CPU Usage or Profile > Frame Time GraphKey metrics:
- Frame time — Should be under 16.67ms for 60fps
- Physics FPS — Should match target (usually 60)
- Script time — Time spent in GDScript/C# code
- Draw calls — Number of GPU draw calls per frame
Memory Profiler
Profile > Memory Usage
Check for:
- Growing resource count over time
- Unfreed scene instances
- Large textures not being unloadedGPU Profiler
Project Settings > Rendering > Debug > GPU Profiling = On
Then: Profile > GPU UsageCommon Error Patterns & Fixes
"Script class 'XXX' does not exist in current project"
- Cause: Autoload script reference broken after rename/move
- Fix: Re-add the autoload in Project Settings > Autoload
"Cannot instantiate non-imported scene: res://..."
- Cause: Scene file not saved or path is incorrect
- Fix: Open the scene in editor and save it, verify path
"Invalid get index 'XXX' (on base: 'Node2D')"
- Cause: Accessing a property that doesn't exist on the node
- Fix: Check node type and available properties, use
has_method()oris()checks
"Failed to connect signal"
- Cause: Method name mismatch or signal doesn't exist
- Fix: Verify signal exists on source node, check method signature matches
Export/Build Errors
| Error | Cause | Fix |
| "Export failed with code -1" | Missing export preset config | Re-create export preset |
| "Android build failed" | SDK/NDK path wrong | Check Project Settings > Android |
| "HTML5 export failed" | Emscripten not installed | Install Godot HTML5 export template |
| "Windows export failed" | MSVC not installed | Install Visual Studio Build Tools |
Network Debugging
Multiplayer API Inspection
# Check connection status
print("Connected: ", Network.multiplayer.is_connected_to_server())
print("Peer count: ", Network.multiplayer.get_peers().size())
# Log RPC calls for debugging
func _rpc_debug_message(msg):
print("[RPC] ", msg)
# Monitor network traffic
# Use Profile > Network Profiler in the editorLag Compensation Debugging
# Log timing information
print("Server time: ", get_tree().get_network_unique_id())
print("Local latency: ", Network.multiplayer.get_connection_status())Godot 4.7 Debugging Notes
- Perfetto tracing — New built-in Android profiler for detailed performance analysis
- New editor log improvements — Better error messages with more context
- tween_await() debugging — Use
awaitbreakpoints in C# debugger for animation sequences
Debug Utility Functions
class_name DebugUtils extends Node
static func draw_rect_debug(rect: Rect2, color: Color, lifetime: float = 0.0):
# Draw debug rectangle (use with CanvasItem.draw_rect)
pass
static func log_tree(node: Node, indent: int = 0):
# Print scene tree for debugging
var prefix = " ".repeat(indent)
print(prefix + node.name, " (", node.get_class(), ")")
for child in node.get_children():
log_tree(child, indent + 1)
static func check_node_ready(node: Node):
# Verify node is ready before accessing children
if not node.is_inside_tree():
push_error("Node not in tree: ", node.name)
return node.is_inside_tree()MCP Bridge Tools (Optional — Live Editor Integration)
When the MCP bridge is running (Phase 2), these tools provide live debugging capabilities:
debugger_output— Read real-time debugger output from the running sceneoutput_log— Read Godot's output log with level filtering (error/warning/info)scene_run/scene_stop— Start and stop scenes for testing fixespause_resume— Pause execution to inspect state at breakpointsscript_validate— Validate scripts without leaving the agent workflowscene_tree— Inspect runtime scene hierarchy for missing nodes
Note: MCP tools require the Godot editor to be running with the MCP plugin enabled. Skills work independently without the bridge.
References
- Debugging Guide
- Profiler Deep Dive
- Network Debugging
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

