/rider-skills:ue-live-debuggingfrom rider-skills
Debug Unreal Engine C++ crashes and runtime bugs using Rider MCP tools: call hierarchy analysis, IDE diagnostics, symbol info, live breakpoints, and PIE state queries. Falls back to Bash/Grep when Rider MCP unavailable.
Ships in rider-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Rider MCP debugging workflow: find the suspect symbol, trace who calls it, see what the IDE already knows is wrong.
Verify the current working directory contains a .uproject file:
find . -maxdepth 1 -name "*.uproject" | head -1
If no .uproject found → STOP.
"This skill requires an Unreal Engine project (a
.uprojectfile must be in the working directory). The current directory does not appear to be a UE project. Navigate to the project root and retry."
The task must involve debugging or investigating a runtime or compile-time issue in C++ or Blueprint code. If there is no debugging component → STOP and inform the user this skill only handles debugging.
Before placing any breakpoints in game module C++ code, verify the binary was compiled in DebugGame Editor (or Debug Editor). In Development Editor the compiler inlines and optimises away most function entry points — breakpoints silently fail with:
"The breakpoint will not currently be hit. No executable code is associated with this line."
How to check: After xdebug_set_breakpoints, inspect each result for that message. If present → STOP. Instruct the user to switch Rider's build configuration to DebugGame Editor and rebuild before continuing. Do not attempt to fire the repro until the breakpoint is confirmed bound.
Engine-only breakpoints (RiderLink, UE core) are unaffected — this check applies only to the project's own game modules.
Check the <system-reminder> deferred-tool list for Rider MCP tools. Load live schemas with ToolSearch before calling any tool. Schemas are authoritative for parameter names — never guess. If execute_tool is the only tool returned, use CLI mode (see reference/rider-mcp-tools.md — execute_tool mode).
If no Rider MCP tools appear in the deferred list:
"Rider MCP tools are unavailable. Open Rider with this project loaded and the MCP server enabled, then retry. Falling back to Bash/Grep — call hierarchy and IDE diagnostics will not run."
Proceed with Bash/Grep/Read only, skipping all mcp__<prefix>__* steps. Document that Rider intelligence steps were skipped.
Fast path for targeted fixes — known function, single file, clear root cause:
.uproject (Gate 1)search_symbol or rgget_file_problems if Rider MCP is availableFull workflow for crash investigation, unknown root cause, GC/threading bugs, or multi-file changes → continue to Checklist below.
Use the agent's native planning/todo mechanism when available. For simple one-file tasks, keep the plan implicit and proceed directly. For complex investigations, track:
Search routing: use rg/Grep for portable text discovery; use Rider search_text/search_file when IDE index, generated/reflected UE code, or unsaved editor state helps. Use Rider semantic tools (search_symbol, analyze_calls, get_symbol_info, get_file_problems, build) for code intelligence. analyze_calls supports C++ (ReSharper backend) — if it returns "No call hierarchy provider found", fall back to Grep.
| Entry point | Go to |
|---|---|
Crash dump / .dmp + .log in Saved/Crashes/ | Crash Dump Analysis (below) |
| Output log errors / warnings only | Log Analysis (below) |
| Reproducible runtime bug with known repro steps | Step 1 directly |
| Live PIE running — inspect game state now | Live PIE Inspection (below) |
Find crash artifacts in Saved/Crashes/ (editor) or the platform crash folder — see reference/crash-patterns.md for locations and minidump instructions.
Read the crash log first:
find Saved/Crashes -name "*.log" | sort -r | head -1 | xargs tail -100
Look for Fatal error, Assertion failed, Unhandled Exception, or call stack near the end.
Identify the crash signature from the callstack address pattern — see reference/crash-patterns.md — Quick Diagnosis Table.
Map the callstack to source: take the topmost non-engine frame and find it with search_symbol.
Continue from Step 1 using that symbol.
When PIE is running, use ue_execute_python to query live game state before reading source files — often resolves the question in one call.
Script must be a single line — no \n, no indented blocks. Use ; and comprehensions.
See reference/ue-python-inspection.md for ready-to-use query patterns and API pitfalls.
Typical first queries (adapt to project-specific classes):
import unreal; w=unreal.get_editor_subsystem(unreal.UnrealEditorSubsystem).get_game_world(); pc=unreal.GameplayStatics.get_player_controller(w,0); print(w,pc)...; p=pc.get_controlled_pawn(); print(p.get_class().get_name() if p else None)...; asc=pc.player_state.get_component_by_class(unreal.AbilitySystemComponent); print(asc.get_name() if asc else None)...; print(list(asc.get_owned_gameplay_tags()))After confirming runtime state, continue from Step 1 to locate the responsible source code.
find Saved/Logs -name "*.log" | sort -r | head -1
grep -n "Fatal\|Error\|Assertion failed\|ensure(" Saved/Logs/<Project>.log | tail -50
grep -n "Warning" Saved/Logs/<Project>.log | grep -v "LogTemp\|LogSlate" | tail -30
See reference/crash-patterns.md — Log Patterns for common entries and root causes. Continue from Step 1.
Use search_symbol to find the suspect class or function. Read the source files using the standard Read tool.
If starting from a crash address or log string rather than a known symbol, use search_text restricted to *.cpp.
Use analyze_calls — it supports C++ via the ReSharper C++ backend.
If the tool returns "No call hierarchy provider found" (symbol not indexed), fall back to Grep to find callers. Read the function body directly to find callees.
See reference/ue-debug-patterns.md — Call Hierarchy Analysis for what to look for in results.
get_symbol_info is position-based — use the standard Read tool first to find the symbol's exact line and column.
Use to confirm API contracts — whether a function is editor-only, can return nullptr, or has threading guarantees. Do not rely on training-data assumptions for version-specific UE APIs.
Run get_file_problems on all suspect files (.h and .cpp). For multiple files, use lint_files.
Do not just tell the user where to set breakpoints — set them via MCP. Pick the last point of known-good state, not the crash site.
Load the required tools first (if not already loaded):
ToolSearch(query: "select:mcp__<prefix>__xdebug_set_breakpoints,mcp__<prefix>__xdebug_get_debugger_status,mcp__<prefix>__xdebug_get_frame_values,mcp__<prefix>__xdebug_get_stack,mcp__<prefix>__ue_play,mcp__<prefix>__ue_status,mcp__<prefix>__execute_run_configuration,mcp__<prefix>__get_run_configurations")
5a — Check editor and PIE state using ue_status.
get_run_configurations then execute_run_configuration.5b — Set breakpoints using xdebug_set_breakpoints. Pass the locations in the breakpoints array. Set standard, conditional, or logpoint breakpoints as appropriate. See reference/ue-debug-patterns.md — Breakpoint Placement Strategies for placement rules.
5c — Start PIE using ue_play if not already running.
5d — Wait for breakpoint hit, then inspect using xdebug_get_debugger_status, xdebug_get_stack, xdebug_get_frame_values.
If a live debugger session is not feasible, add UE_LOG statements using the standard Edit tool.
See reference/ue-debug-patterns.md — Instrumentation Rules. After editing, run get_file_problems to confirm no new errors.
Apply the fix using the standard Edit tool.
After editing: run get_file_problems on the changed file (and .h if touched). Fix the root cause, not the symptom — see reference/ue-debug-patterns.md — Fix: Root Cause vs Symptom.
Run build_solution_start and poll build_solution_state until complete.
After a successful build:
get_project_problems on the changed module; address new warnings on your filesreformat_file on changed filessee: reference/rider-mcp-tools.md — ALL Rider MCP tools: complete parameter reference, execute_tool mode table, UE editor/asset/debugger tools see: reference/rider-debug-tools.md — Debugging workflow patterns: crash callstack, intermittent bugs, packaged build crashes, live PIE inspection, breakpoint sequences see: reference/ue-debug-patterns.md — UE debugging patterns: call hierarchy analysis, instrumentation rules, fix guidance, breakpoint placement, GC/threading patterns see: reference/crash-patterns.md — Crash patterns: address signatures, GC crashes, assertion failures, async loading, Slate null widgets, log patterns see: reference/ue-python-inspection.md — UE Python runtime inspection: single-line scripting rules, world/player/component access, GAS/stat-tag queries, GameplayTag API pitfalls, common errors
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/debugging-codeUse for debugger-driven runtime root-cause analysis in Rider-supported solutions and projects, including .NET/C#, F#, VB, C++, Unity, Unreal Engine, and other GameDev or mixed-language projects. Trigger when runtime state or control-flow evidence is needed — actual values, branch taken, call order, thread context, whether execution reaches a chosen line — and cannot be derived confidently from source or logs; when pinning the relevant path would otherwise mean reading many files or tracing a deep call chain; or on an explicit request to debug, set breakpoints, step, or inspect runtime values. Do not use for compile-time or syntax errors, source-obvious bugs, failures already pinpointed by logs/tests, or code merely named debug/Debugger./finding-testsLocates existing tests for a given C# class and method using the test coverage data supplied by IDE. Triggers ONLY for C# production code (`.cs` files in a Rider .NET solution) when generating new tests, adding test coverage, finding existing tests, or when the user mentions uncovered lines, test files, or test suites. Must be used before writing or editing C# test code when finding already existing tests is necessary. Do NOT invoke for non-C# languages — the underlying tool only understands C# symbols and will not return useful results./refactoring-codeUse for any refactoring in a solution open in Rider (.NET/C#, F#, VB, C++, Unity, Unreal Engine, XAML, Razor, GameDev and mixed-language projects) — rename a type, member or namespace (including fixing a typo in one), rename a property together with related parameters, change a method signature, move a type to another namespace, delete unused or obsolete types and members (dead-code cleanup, even whole files), extract an interface, base class or method, or reorganize namespaces. Use it even when the change looks like a one-file edit: the IDE tool applies it, and every reference, in one call. Read this SKILL.md in a command of its own (nothing chained after it) before the first `execute_tool` call: it holds the command syntax. Do not use for file-only moves, config keys, string literals, comment text, generated output, or logic changes with unchanged names/signatures./ue-code-authoringUse when writing or modifying Unreal Engine C++ — classes, actors, components, subsystems, interfaces, ability-system (GAS) code, module dependencies, reflected UPROPERTY/UFUNCTION API, native gameplay tags, and testable gameplay behavior — in a project open in JetBrains Rider. Source changes go through Read/Grep/Glob/Edit/Write; Rider supplies symbol search, code analysis, formatting, and builds through its MCP execute_tool. Do not use for Blueprint-only tasks or editor automation with no C++ authoring./ue-test-authoringUse when writing or modifying Unreal Engine automated tests — Automation (IMPLEMENT_SIMPLE_AUTOMATION_TEST, DEFINE_SPEC), CQTest, Functional, Gauntlet, LowLevel/Catch2 — along with test modules and the Build.cs dependencies they need, in a project open in JetBrains Rider. Test source goes through Read/Grep/Glob/Edit/Write; Rider supplies symbol lookup for the API under test, registration and include diagnostics, formatting, and builds through its MCP tools. Do not use for Blueprint-only testing, or for diagnosing an existing test failure that needs no test code change.npx claudepluginhub jetbrains/rider-skills --plugin rider-skillsOther plugins' skills for the same job