Ejemplo n.º 1
0
        static void AttachStackFrame(ObjectValue value, DebuggerSessionOptions sessionOptions)
        {
            var location   = new SourceLocation(string.Empty, "test.cs", 1, 1, 1, 1);
            var stackFrame = new StackFrame(0, location, "C#", false, true);
            var session    = new CSharpInteractiveDebuggerSession();

            session.Run(new DebuggerStartInfo(), sessionOptions);

            stackFrame.Attach(session);
            stackFrame.ConnectCallbacks(value);
        }