ZeroBraneStudio icon indicating copy to clipboard operation
ZeroBraneStudio copied to clipboard

Remote Debugger: support to whole path when calling loadFile

Open yamaken93 opened this issue 4 years ago • 1 comments

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.

yamaken93 avatar Jan 23 '21 20:01 yamaken93

@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:

  • The project directory
  • The full path to the script you are loading from
  • The full loadfile command with the script you are loading
  • Are you loading the file in the IDE with the same path you are using in loadfile?
  • What's the output from debug.getinfo(1,"S").source from the script loaded with loadfile?

pkulchenko avatar Jan 26 '21 00:01 pkulchenko