Debug Traceback
-
- Registered User
- Posts: 32
- Joined: Fri Aug 30, 2013 5:45 pm
Debug Traceback
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.
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.
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.
-
- Registered User
- Posts: 32
- Joined: Fri Aug 30, 2013 5:45 pm
Oh, okay. I'll just use that from then on, thanks.
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.
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.