Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Debugging

Start with the narrowest tool that can explain the problem. Most XRF issues can be isolated with a focused build, runtime logs, and the debug panel before a native engine debugger is needed.

Choose the right tool

ProblemStart with
Build output is missing or staleThe relevant build command and project verification
A script throws or behaves incorrectlyLogs and a focused test
An NPC uses the wrong scheme or animationAI and logics
A form is missing or misalignedUI forms
Weather does not switch as expectedWeather
Lua code is slow or uses too much memoryPerformance statistics
A Lua API or engine callback behaves unexpectedlyEngine debugging

The XRF debug panel can inspect objects, managers, tasks, treasures, memory, profiling, and merged runtime data without leaving the game.

Basic workflow

  1. Reproduce the issue with a known engine variant and save.
  2. Rebuild only the affected target when possible.
  3. Check the engine and Lua logs for the first relevant error.
  4. Inspect live state with the debug panel or an engine overlay.
  5. Reduce the problem to a focused test, config section, scheme, or engine API call.
  6. Verify the fix with the same engine, save, and reproduction steps.

Do not build scripts with --no-lua-logs while investigating runtime behavior. Use a disposable save for console commands, object mutation, teleportation, or forced weather changes.