[Solved] Want better debugging of lua scripts
Posted: Thu Oct 09, 2008 18:00
Hi,
I'd like to get some better debugging possibilities of lua, therefore this change request. If exceptions from lua would be forwarded, it would become much easier.
/G
I'd like to get some better debugging possibilities of lua, therefore this change request. If exceptions from lua would be forwarded, it would become much easier.
Code: Select all
void System::executeScriptFile(const String& filename, const String& resourceGroup) const
{
if (d_scriptModule)
{
try
{
d_scriptModule->executeScriptFile(filename, resourceGroup);
}
catch(ScriptException& e)
{
throw e; // Forward script exceptions with line number and file info
}
catch(...)
{
throw GenericException("System::executeScriptFile - An exception was thrown during the execution of the script file.");
}
}
else
{
Logger::getSingleton().logEvent("System::executeScriptFile - the script named '" + filename +"' could not be executed as no ScriptModule is available.", Errors);
}
}
/G