Blueprint Inspector (VS Code extension)
Attaches to the BlueprintInspector DAP server that an Unreal Engine game hosts on 127.0.0.1:19021.
- Start Game and Attach starts the packaged game (configured with
blueprintInspector.gameExecutable), waits for the listener and attaches.
- Attach to Blueprint Inspector server attaches to a game that is already running.
- Blueprint functions open as
blueprint-source: documents with breakpoints, stepping and variables.
Breakpoints and logpoints
- Conditional breakpoints and hit counts use the standard VS Code breakpoint UI.
- Add Logpoint prints a message without stopping;
{expr} placeholders are evaluated.
- Watch and hover resolve property paths against the paused frame.
- Syntax and limits: Docs/Debugger/Expressions.md.
Exception stops
Blueprint runtime errors can stop execution instead of only reaching the log.
- Enable them in the Breakpoints panel's exception filters: Accessed None, Blueprint
runtime errors and Runaway loops. None is selected by default, and the selection lasts for
the debug session.
- A stop has reason
exception and shows the VM's message; the stack, scopes, variables and watch
work as at any breakpoint. Continue resumes just after the error, which still reaches the log.
- Game-thread only: an animation Blueprint's error on a worker thread is logged, not stopped. See
Docs/Debugger/Exceptions.md.
Navigation
The pseudo-source is a virtual document, so the extension parses it and hands the result to VS Code:
- Outline and Ctrl+Shift+O (Go to Symbol in File) list each function and the variables it
declares, with typing to filter. Selecting an entry jumps to it.
- F12 / Ctrl+click on a variable goes to its definition: the parameter list, or the first statement
that assigns it. The renderer writes the same name two ways (
HitActor in a signature, Hit Actor
in the body), so matching ignores spaces, underscores and case.
- Blueprint Inspector: Go to Variable… narrows the picker to variables in the open document, when
you do not want functions in the list.
Navigation is read-only: the rendered source is a view of the Blueprint, so editing the text does not
change the asset. To change a value at a stop, edit it in the Variables view, which writes through
setVariable.
Hot-path capture
Opt-in statement and break/continue arm counts for the running game. Off by default and scoped to the
debug session.
- Toggle from the status bar (
Blueprint capture), the debug toolbar, or Blueprint Inspector: Start
Capture / Stop Capture / Reset Capture.
- Rendered lines get an orange heat background and a
×count inlay hint; the overview ruler marks them.
- The Hot Paths view in Run and Debug ranks classes, functions and lines by hits; select a line to
open it. Capture start renders every loaded Blueprint by default so unopened classes resolve
(
blueprintInspector.resolveAllOnCapture).
- The status bar shows hits that resolved to rendered lines; hover it for the raw dispatch count.
Stop Capture freezes the counters and keeps the heat. Reset or a new capture clears them, and
ending the debug session clears everything.
- Only executed statements count, and only classes whose source has been opened can resolve. Counts, not
timings. See Docs/Debugger/HotPaths.md.
Coverage
Which statements a run never reached, over the same capture counters Hot Paths uses.
- Start a capture, play, stop. The Coverage view in Run and Debug lists classes, functions and lines
with
covered/total labels, least-covered class first; select a line to open it.
- Show Only Uncovered Statements (view title) narrows the tree to the lines with no hits.
Refresh Coverage re-reads the counters; stopping a capture refreshes an open snapshot, and
Reset Capture discards it.
- Export Coverage (JSON) and Export Coverage (LCOV) write the snapshot for QA or CI; LCOV feeds
genhtml and coverage hosts directly.
- Only rendered classes resolve, and a line is covered when its counter is above zero. Counts, not
timings. See Docs/Debugger/Coverage.md.
Capture snapshots
Save a run and compare the next one against it.
- Save Capture Snapshot writes the current counters (with map, build, engine and timestamps) to a
JSON file; Compare Capture With Snapshot diffs this run against a saved file.
- The Hot Path Diff view lists regressions first, then new lines, improvements and lines the run
stopped reaching; select one to open it. Unchanged lines are counted in the summary only.
- Snapshots are plain JSON, comparable across sessions, and capped at 20000 lines per capture. Only
rendered classes are comparable. See
Docs/Debugger/Snapshots.md.
Audit
- Blueprint Inspector: Run Audit checks the loaded Blueprints for hardcoded secrets, debug calls,
console/level control, risky Tick work, unchecked casts and duplicate class names.
- Findings appear in the Audit view grouped by severity; select one to open its line.
Export Audit Report writes Markdown for a pre-ship checklist.
- Heuristic review prompts, not a security guarantee; values that look like secrets are redacted.
See Docs/Debugger/Audit.md.
Settings: blueprintInspector.gameExecutable, blueprintInspector.gameArguments,
blueprintInspector.tokenFile, blueprintInspector.resolveAllOnCapture. See the
plugin documentation for the full setup.
| |