diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs index 6fe111f..4ed7bd4 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs | |||
@@ -40,6 +40,13 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | |||
40 | 40 | ||
41 | Common.SendToDebug("Compiling"); | 41 | Common.SendToDebug("Compiling"); |
42 | 42 | ||
43 | // DEBUG - write source to disk | ||
44 | try | ||
45 | { | ||
46 | File.WriteAllText(Path.Combine("ScriptEngines", "debug_" + Path.GetFileNameWithoutExtension(LSOFileName) + ".cs"), CS_Code); | ||
47 | } | ||
48 | catch { } | ||
49 | |||
43 | // Do actual compile | 50 | // Do actual compile |
44 | System.CodeDom.Compiler.CompilerParameters parameters = new CompilerParameters(); | 51 | System.CodeDom.Compiler.CompilerParameters parameters = new CompilerParameters(); |
45 | parameters.IncludeDebugInformation = true; | 52 | parameters.IncludeDebugInformation = true; |