Lua Debugger
Always up-to-date instruction on the Modded Exes repository: GitHub
- Debug scripts with VSCode and LuaPanda, support by IX-Ray Platform
- To use it, you need to install VSCode and LuaPanda extension
- Open your
gamedata/scriptsfolder in VSCode - Download these files into your
gamedata/scripts/.vscodefolder: - Download these files into your
gamedata/scriptsfolder: - In VSCode, go to
Run and Debugsection and start debugging or press F5 key - Return to the game and open in-game console with
~ - Type console command
lua_debug 1in console and reload the save or start a new game
There are several ways to enable debugger from the engine side:
- Auto-attach
- add
-ldbgto launch arguments
- add
- Press F11 to open ImGui window and go to Debug > LuaDebug > Start
- Console
- Open in-game console with
~ - Type console command
run_string debugger_attach()
- Open in-game console with
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



