EU5 Debug Console Commands: Guide for Unreal Engine 5
Introduction
If you’ve ever needed to fix a tricky bug, squeeze extra performance out of a level, or test gameplay quickly, eu5 debug console commands are one of the most powerful tools at your disposal. This guide explains how the developer console in Unreal Engine 5 works, reveals the must-know console commands and console variables (cvars), and gives clear examples for play-in-editor and packaged builds. Whether you’re a programmer, technical artist, or level designer, these practical tips will help you debug faster and ship higher-quality projects.
Why use the EU5 debug console?
The developer console in UE5 is more than a cheat box. It exposes debugging tools, performance profiling, runtime tweaks, and logging controls that are essential for modern game development. With the eu5 debug console commands you can:
- Toggle rendering features and visualize performance with stat commands.
- Change console variables (cvars) at runtime without recompiling or restarting.
- Trigger debug cameras, teleportation, or spawn assets for testing.
- Collect logs, filter log output, and diagnose crashes more quickly.
- Profile GPU and CPU behavior using profilegpu and stat unit, ideal for optimization passes.
These tasks are especially useful when you play in editor (PIE) or test on remote clients via RCON-style workflows. Learning eu5 debug console commands saves iteration time and improves your debugging workflow.
How to open the developer console in UE5
Before you run eu5 debug console commands, you need to open the developer console. Steps are simple and vary slightly by platform:
- PC (default): Press the tilde key (~) or the backtick key (`). If that does not work, check the Engine.ini input bindings for “ToggleConsole”.
- Play In Editor (PIE): Press the same tilde key while focused on the game viewport. Use the Output Log window for additional log output and errors.
- Console on packaged builds: Ensure “enable console” is allowed in project settings. Shipping builds often disable the console for security; use debug or development builds for full access.
Tip: If the console doesn’t open, confirm that the input key is bound and that the current keyboard layout is correct. Some international layouts change the tilde location.
Essential eu5 debug console commands (with examples)
These are the commands you’ll use most often. Each line shows the command, its purpose, and an example you can paste into the console.
- toggledebugcamera — Enter a free-flying debug camera to inspect scenes.
- Example: toggledebugcamera
- Tip: Useful for cinematics and level visibility checks.
- toggleconsole — Opens or closes the console from script or bindings.
- Example: toggleconsole
- slomo <value> — Adjust game speed for slow-motion testing.
- Example: slomo 0.5 (half-speed), slomo 1 (normal)
- Tip: Combine with pause/step for debugging animations.
- setres <width>x<height>f — Change resolution at runtime.
- Example: setres 1920x1080f
- Tip: Use on remote test machines to reproduce resolution-specific bugs.
- stat fps — Display frames-per-second information.
- Example: stat fps
- Tip: Pair with stat unit for CPU/GPU breakdowns.
- stat unit — Break down frame time into game/render/other.
- Example: stat unit
- Tip: Use repeatedly while profiling to find bottlenecks.
- profilegpu — Run GPU profiler and write a trace for analysis.
- Example: profilegpu
- Tip: Use with GPU Visualizer to inspect expensive draw calls.
- r.setres <width>x<height> — Another variant for resolution; often used in screenshots and automated tests.
- Example: r.setres 1280×720
- log <category> <verbosity> — Adjust log verbosity for a category to filter log output.
- Example: log LogTemp Warning or log MySubsystem Verbose
- DumpConsoleCommands — List available console commands; very useful when extending systems.
- Example: DumpConsoleCommands
These commands showcase a mix of cheat codes, performance profiling, and logging. Learning them lets you toggle visuals and probe systems without changing code.
Understanding console variables (cvars) and advanced tuning
Console variables, or cvars, are lowercase keys you can read and write at runtime. They control engine behavior, graphics, networking, and subsystem toggles. Use them to test rendering tweaks, collision layers, or AI settings without compiling.
- Get and set cvars: r.ShadowQuality 0 disables shadows. Use r.ShadowQuality alone to print the current value.
- Make permanent: Add cvars to DefaultEngine.ini or DefaultGame.ini under [/Script/Engine.RendererSettings] or appropriate sections to ensure consistent behavior across sessions.
- Security: Remember that some cvars can expose cheats. Shipping builds often lock or remove access to critical cvars.
Examples of common cvars used during debugging:
- r.ShadowQuality — Toggle shadow fidelity.
- r.ViewDistanceScale — Adjust LOD draw distances.
- t.MaxFPS — Hard-limit frames to reproduce frame pacing issues.
- r.RayTracing — Enable or disable ray-traced features for troubleshooting ray tracing paths.
Tip: Use DumpConsoleVariables or DumpConsoleCommands to discover available cvars and commands in your build. Many engine subsystems expose cvars not documented in editor UI.
Performance profiling: stat commands and profilegpu
Performance is often the top reason teams use eu5 debug console commands. The engine provides a suite of stat commands that gather runtime metrics. Here’s how to use them effectively:
- stat unit — Shows Game, Draw, GPU times. Use this as a first-level check for where time is spent.
- stat fps — Simple FPS readout; combine with t.MaxFPS to test throttling.
- stat scenerendering — Provides rendering statistics to find expensive passes.
- stat memory — Inspect memory usage and allocations.
- profilegpu — Starts a GPU capture. After running it, open the GPU Visualizer for frame-by-frame analysis.
Workflow tip: Start with stat unit. If GPU time dominates, run profilegpu. If game thread time dominates, use sampling or tracing tools and inspect log output for expensive scripts or ticks.
Logging, filtering, and crash tracing
Good logs are key to diagnosing hard-to-reproduce bugs. eu5 debug console commands allow you to control logging categories and verbosity at runtime. This reduces noise and directs attention to the subsystem that matters.
- Adjust verbosity: log MySystem Verbose or log MySystem Error to tune the log flow.
- Output filtering: Use the Output Log in the editor to search, filter by category, and export logs for crash reports.
- Crash traces: For packaged builds, gather logs and minidumps. Increasing log verbosity before a test helps capture state leading to a crash.
- Log categories: Use custom categories for subsystems. These appear as LogMyModule or similar in logs and can be controlled via console commands.
Example: If AI behavior is odd, run log AIController Verbose then reproduce the issue. Inspect the Output Log to track decision-making and blackboard changes.
Common troubleshooting and practical tips
Here are real-world tips and common pitfalls when using eu5 debug console commands:
- Console not opening: Verify input bindings and confirm project settings allow a console. For multiplayer, toggling the console might require focusing the correct viewport.
- Command not found: Some commands are disabled in shipping builds. Use Development or Debug builds to access the full set.
- Conflicting cvars: Some cvars interact. For example, forcing a low view distance and enabling high-quality postprocessing can produce unexpected visuals. Reset to defaults with r. 0 or restart the editor if necessary.
- Automating commands: You can run console commands from blueprints or code for reproducible testing. Useful for automated QA runs or scripted demonstrations.
- Remote debugging: For networked sessions use logging, RCON-style console access, or gather logs from remote clients to reproduce issues that only appear on specific hardware.
Tip: Keep a short cheatsheet of the most-used eu5 debug console commands for your team. Store it in project docs so new team members can ramp up quickly.
Best practices and safety considerations
Using the console is powerful, but it carries responsibilities:
- Disable cheats in shipping builds: Ensure cheat codes and dangerous cvars are blocked or removed from production. Tools like toggleconsole should be restricted.
- Document cvars: When you add new console variables to systems, document expected ranges and types so other team members can use them safely.
- Reproducibility: If you change a cvar to diagnose a bug, record the change and revert it or add it to a config file so test environments remain consistent.
- Access control: For multiplayer projects, consider how console access could be abused. Limit access to development builds or authenticated admin consoles.
FAQ
Q1: What is the difference between console commands and cvars?
A1: Console commands are actions you invoke (for example, stat fps or toggledebugcamera), while cvars are variables that hold configuration values (for example, r.ShadowQuality or t.MaxFPS). Commands often change states or trigger reports; cvars adjust parameters.
Q2: Are eu5 debug console commands available in packaged shipping builds?
A2: Many commands are disabled or restricted in shipping builds for security and fairness. Development and Debug builds provide full access. If you need console access in a test build, enable it explicitly and ensure non-dev players cannot exploit it.
Q3: How do I log custom debug messages that I can filter with console commands?
A3: Use UE_LOG with a custom category in C++ or PrintString in Blueprints for quick messages. Create a LogMyCategory category so you can change verbosity at runtime with log LogMyCategory Verbose and filter using the Output Log.
Q4: What should I use to profile GPU performance with the console?
A4: Use profilegpu to capture GPU timings and analyze with the GPU Visualizer. Combine this with stat scenerendering and stat gpu to get both numeric and visual feedback on GPU cost centers.
Q5: How can I discover available console commands and cvars for my current build?
A5: Run DumpConsoleCommands and DumpConsoleVariables to output lists of commands and cvars. You can also use autocomplete in the console by typing the first letters and pressing Tab to explore available commands.
Conclusion
eu5 debug console commands are an indispensable part of efficient development in Unreal Engine 5. From quick performance checks with stat commands to in-depth GPU captures with profilegpu, the console helps you iterate faster and solve complex problems. Use cvars for live tuning, logging for targeted diagnostics, and always document changes that affect reproducibility. Practice these commands in your play-in-editor sessions, and build a small team cheatsheet to spread knowledge. With these skills, debugging, profiling, and optimizing in UE5 becomes faster and far more predictable.
Now that you understand the essentials, open the console and try a few commands: stat unit, profilegpu, and DumpConsoleCommands. Each one will reveal insights that make your next optimization pass or bug fix easier to achieve.

