Open yamaken93 opened 3 years ago
@yamaken93, there is likely something else going on, as I can't reproduce this issue. The files loaded with a full path should be loaded in the debugger (and stepped through) in a way similar to files from the project directory (and it should work with files outside of the project directory when the full path is used).
Can you provide the following information:
loadfile
command with the script you are loadingloadfile
?debug.getinfo(1,"S").source
from the script loaded with loadfile
?
I'm calling loadfile with a whole windows path like C:/projects/myproject/scripts/script.lua and because of that the breakpoints don't work. If i remove the "C:/projects/myproject" from the path string then the debugger works correctly. I need this feature to work since for my own reasons i use whole paths. I found the issue thanks to the tip in the faq which told me to use "debug.getinfo(1,"S").source" to know the file path and i figure out that loadfile/dofile only worked if the path was relative to the .exe(i'm using embedded luajit) path.