pkulchenko / ZeroBraneStudio

Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
http://studio.zerobrane.com/
Other
2.6k stars 519 forks source link

Remote Debugger: support to whole path when calling loadFile #1103

Open yamaken93 opened 3 years ago

yamaken93 commented 3 years ago

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.

pkulchenko commented 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: