Godot debugging profiling

From thedivergentai/GD-Agentic-Skills · View interactive version

Godot debugging profiling is an AI agent skill from the GitHub repository thedivergentai/GD-Agentic-Skills. Expert debugging and profiling for leaks, GPU/Visual Profiler, headless CI QA, orphan nodes, thread-safe logs, and custom Debugger monitors — not print/breakpoint tutorials. Trigger on OBJECT_ORPHAN_NODE_COUNT, ObjectDB growth, Visual Profiler GPU spikes, flaky headless exits, or remote device conso

How to use this skill

Skill file

NEVER Do

Symptom → Monitor → Script

MANDATORY for the matching row. Do NOT Load every debug script for one bug.

| Symptom | Monitor / API | Script |

|---------|---------------|--------|

| Nodes removed but RAM climbs | OBJECT_ORPHAN_NODE_COUNT (debug) | MANDATORY orphan_node_detector.gd |

| ObjectDB / instance growth | custom monitors + dump | memory_usage_threshold_alert.gd, scene_tree_dump.gd |

| GPU / overdraw mystery | Visual Profiler (briefly) | Pair with perf skill; use performance_plotter.gd for trends — do not leave Visual Profiler on |

| Flaky headless / CI exit | exit codes + asserts | MANDATORY automated_qa_suite.gd, push_error_safe_exit.gd |

| Microbenchmark lies | Time.get_ticks_usec | MANDATORY high_precision_benchmarker.gd |

| Crash needs locals | backtraces (debug only) | advanced_backtrace_recorder.gd, stack_trace_logger.gd |

| Engine errors to backend | Logger intercept | engine_error_interceptor.gd — never print inside Logger |

| Custom Debugger metrics | Monitors tab | custom_editor_monitor.gd, debugger_tab_plugin.gd |

| Mobile/console no stdout | in-game console | remote_debug_console.gd, debug_overlay.gd (debug builds only) |

| Thread races / log corruption | mutex logger / asserts | thread_safe_logger.gd, thread_safety_assert.gd |

| Invisible logic (AI/physics) | debug draw / gizmos | custom_debug_draw.gd, property_watcher_gizmo.gd |

| Conditional halt | hardcoded break | break_on_condition.gd |

| Editor vs runtime paths | Engine.is_editor_hint | engine_editor_hint_logic.gd |

Available Scripts (full catalog)

Leaks & memory

Timing & QA

Errors, stacks, threads

Editor / remote / viz

Expert Pointers

MANDATORY for print/breakpoint workflow depth, profiler interpretation, and expert CI/GPU/thread patterns: debug-workflows.md. Do NOT Load when the symptom → script table above already routes you.

Reference

Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing to a peer domain — do not preload the whole lattice.

Official Documentation

Related Skills

Prerequisites
Complements
Downstream / consumers
Master
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.