IndexOutOfRangeException Debug Transform

Jun 15, 2014 at 6:56 PM
Edited Jun 15, 2014 at 6:56 PM
Hi,

I get a IndexOutOfRangeException:
   bei Microsoft.Scripting.Debugging.DebugFrame.get_CurrentScopeData()
   bei Microsoft.Scripting.Debugging.DebugFrame.GetLocalsScope()
   bei Microsoft.Scripting.Debugging.DebugFrame.set_ThrownException(Exception value)
   bei Microsoft.Scripting.Debugging.DefaultDebugThread.GetFrame(Int32 index)
   bei Microsoft.Scripting.Debugging.DefaultDebugThread.GetLeafFrame()
   bei Microsoft.Scripting.Debugging.TracePipeline.Microsoft.Scripting.Debugging.IDebugCallback.OnDebugEvent(TraceEventKind kind, DebugThread thread, FunctionInfo functionInfo, Int32 sequencePointIndex, Int32 stackDepth, Object payload)
   bei Microsoft.Scripting.Debugging.CompilerServices.DebugContext.DispatchDebugEvent(DebugThread thread, Int32 debugMarker, TraceEventKind eventKind, Object payload)
   bei Microsoft.Scripting.Debugging.RuntimeOps.OnTraceEventUnwind(DebugThread thread, Int32 debugMarker, Exception exception)
   bei line(Closure , LuaGlobal )
when I execute a empty expression:
.Lambda line<System.Func`2[Neo.IronLua.LuaGlobal,Neo.IronLua.LuaResult]>(Neo.IronLua.LuaGlobal $_G) {
    .Block() {
        .DebugInfo(line: 16707566, 0 - 16707566, 0);
        .Label
            Neo.IronLua.LuaResult.Empty
        .LabelTarget #return:
    }
}
that was transformed by the DebugContext:
debugContext = DebugContext.CreateInstance();
debugPipeline = TracePipeline.CreateInstance(debugContext);
debugPipeline.TraceCallback = this;
...
debugContext.TransformLambda(expr)
What is wrong/missing?