[2.1.14] Crash under debugger, reproducible
Posted: Thu Aug 20, 2026 5:04 am
Mods loaded: base, EditorExtensions, EvenPickierDollies, fiber-optics
Chasing a bug in a mod, here is what I did:
- put a breakpoint in an event handler that runs out of on_tick
- single stepped the handler. It jumped to the right place in control.lua, which in turn calls another function in a different source file (scripts/other.lua)
- stepped into this, source file did not change. Debugger showed the right line number but still in control.lua, not in scripts/other.lua
- weird. Put a breakpoint into scripts/other.lua at the right place, pressed continue.
Game crashed all the way down to MacOS error reporting.
100% reproducible. Retried with trace = true (dap-trace.log attached)
Chasing a bug in a mod, here is what I did:
- put a breakpoint in an event handler that runs out of on_tick
- single stepped the handler. It jumped to the right place in control.lua, which in turn calls another function in a different source file (scripts/other.lua)
- stepped into this, source file did not change. Debugger showed the right line number but still in control.lua, not in scripts/other.lua
- weird. Put a breakpoint into scripts/other.lua at the right place, pressed continue.
Game crashed all the way down to MacOS error reporting.
100% reproducible. Retried with trace = true (dap-trace.log attached)