bring back some script engine debugging, hoping this will help track down the randoms segfaults

This commit is contained in:
Sean Dague
2008-02-18 14:17:09 +00:00
parent ea0f3efcac
commit f47bcb0f98
3 changed files with 18 additions and 18 deletions

View File

@@ -49,9 +49,9 @@ namespace OpenSim.Region.ScriptEngine.Common
string EventName = m_Script.State + "_event_" + FunctionName;
///#if DEBUG
/// Console.WriteLine("ScriptEngine: Script event function name: " + EventName);
///#endif
#if DEBUG
Console.WriteLine("ScriptEngine: Script event function name: " + EventName);
#endif
if (Events.ContainsKey(EventName) == false)
{
@@ -80,13 +80,13 @@ namespace OpenSim.Region.ScriptEngine.Common
}
//cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined
///#if DEBUG
/// Console.WriteLine("ScriptEngine: Executing function name: " + EventName);
///#endif
#if DEBUG
Console.WriteLine("ScriptEngine: Executing function name: " + EventName);
#endif
// Found
ev.Invoke(m_Script, args);
}
}
}
}