Lua Debugging
Lua Debugging
We assume that you have basic experience using a graphical debugger (e.g.
understand the concept of a breakpoint).
Please note that running the game with the -debug_lua parameter enables some lua
sandbox escape exploits, so you shouldn't do that when any untrusted mods are
enabled.
Tips:
- In case you'd like to debug a lua file before it's been loaded by the game (and
auto-added to Project Explorer), drag and drop the file to Project explorer, open
the file and set breakpoints where needed, then press F5 to start debugging.
- Adding _G to the Watch window allows you to watch the entire state of a lua
context.
- Please note that Noita runs lua scripts inside multiple lua contexts.