Closed tanis2000 closed 1 year ago
I solved this issue by changing the implementation on my custom engine to provide the full name of the lua file instead of the module name when loading it. It looks like this does the trick. In my case, when loading module main
, I add .lua
to it and set it as the name of the loaded file in luaL_loadbuffer
.
I have my own engine which is using physfs to map the path of the lua files to a virtual directory. This means that the breakpoints are being set with the full path of the files, e.g.:
But inside my engine, the lua files are loaded from a virtual "/assets" folder. Thus, the file name looks different. I noticed this by turning on the stopOnEntry flag. The reported path is the following:
Is there any way to let the debugger understand that
/Users/tanis/Documents/binocle-player-games/simple
should be mapped to/assets/simple
and the other way around?