You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like breakpoints are triggering only in main/launch Lua file, but all breakpoints set in the imported modules (via require("module")) are not triggering.
Is this a bug or I need some tweaks in lrdb-extension config and/or workspace config?
It looks like on macOS, "internal Lua" (Emscripten generated) interpreter can't correctly resolve module file names for breakpoints. It uses internally paths like "@./some-module.lua" for modules but LuaDebugSession (lrdbDebug.ts) sends breakpoints info with paths like "some-module.lua" which as a result maps into "@some-module.lua" in the interpreter.
Modification of LuaDebugSession.convertClientPathToDebugger() function from:
I'm having similar problems with both stepping into code in an imported module (via eg. require("libs.foobar")), and setting breakpoints. When I try to step into the code, it's apparent that the path isn't formatted correctly - it comes in as eg "c:/project/libs.foobar", when it should be "c:/project/libs/foobar.lua" in order for VSCode to load the right file. Otherwise it throws a 'file not found' error.
I've been able to work around this by adding the last line here:
It looks like breakpoints are triggering only in main/launch Lua file, but all breakpoints set in the imported modules (via require("module")) are not triggering.
Is this a bug or I need some tweaks in lrdb-extension config and/or workspace config?
OS: macOS 10.12.6
Lua Debugger: internal (Emscripten)
The text was updated successfully, but these errors were encountered: