Debug Traceback

Forum for suggestions and new feature requests for SDStudio Design Environment
Post Reply
Centauri Soldier
Registered User
Posts: 32
Joined: Fri Aug 30, 2013 5:45 pm

Debug Traceback

Post 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.
User avatar
Serkan
Developer
Developer
Posts: 216
Joined: Thu Jul 04, 2013 8:44 pm
Location: Windows.h
Contact:

Post 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.
Centauri Soldier
Registered User
Posts: 32
Joined: Fri Aug 30, 2013 5:45 pm

Post by Centauri Soldier »

Oh, okay. I'll just use that from then on, thanks.
User avatar
Serkan
Developer
Developer
Posts: 216
Joined: Thu Jul 04, 2013 8:44 pm
Location: Windows.h
Contact:

Post 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
Post Reply