Skip to main content

Lua Debugger


IX-Ray Platform
IX-Ray Platform
SaloEater
SaloEater

Always up-to-date instruction on the Modded Exes repository: GitHub GitHub

There are several ways to enable debugger from the engine side:

  1. Auto-attach
    • add -ldbg to launch arguments
  2. Press F11 to open ImGui window and go to Debug > LuaDebug > Start
  3. Console
    • Open in-game console with ~
    • Type console command run_string debugger_attach()

If you did everything correctly and engine is working properly too, you will get an entry breakpoint at global.lua file in VSCode.

Unless you are using auto-attach solution, you have to enable the debugger every time you start a new game or load a save

Debugger is working dynamically, so you can add/remove files from your VSCode folder and it will automatically update the list of files available for debugging.

Debugger doesn't support workspace with multiple folders, so you HAVE to use "File" -> "Open Folder" to make debugger work