Page 1 of 1

Debug Traceback

Posted: Thu Jan 30, 2020 5:05 pm
by Centauri Soldier
Currently, the debug can find errors in the code within SDStudio but when I use require() to load a lua file, it cannot trace any errors within the file. An error shows up in the debug window simply as Error. It'd be nice to have a file name, a line number, and the error returned.

Re: Debug Traceback

Posted: Thu Jan 30, 2020 8:39 pm
by Serkan
This requires a custom function , the require executes the code out of the box therefore we can not track it
Especially after next version update (With Multi Thread Addition) it will be dangerous to use that function


A custom "Application:LoadScript" will be available with the next version to execute external scripts.

Re: Debug Traceback

Posted: Fri Jan 31, 2020 8:04 pm
by Centauri Soldier
Oh, okay. I'll just use that from then on, thanks.

Re: Debug Traceback

Posted: Tue Feb 04, 2020 6:43 pm
by Serkan
Done ,
You can load external script files and get debug info in IDE
You can also load script files with UTF-8 encoding and UTF-16 (Unicode) encoding

This works a little different from the require function , therefore this will not return a lua variable.


debug_file.png