예제 #1
0
        public AD7StackFrame(AD7Engine engine, AD7Thread thread, NodeThreadContext threadContext)
        {
            m_engine = engine;
            m_thread = thread;
            m_threadContext = threadContext;

            // Try to get source information for this location. If symbols for this file have not been found, this will fail.
            m_functionName = m_threadContext.func.AnyName;
            m_lineNum = (uint)m_threadContext.line;
        }
예제 #2
0
 internal Property Evaluate(NodeThreadContext context, string code, out string error)
 {
     var result = dbg.RequestSync("evaluate", new { expression = code, frame = context.index });
     if ((bool)result["success"]) {
         error = "";
         var fakeVar = new JObject(new JProperty("name", code), new JProperty("value", result["body"]));
         return new Property(fakeVar, this);
     }
     error = (string)result["message"];
     return null;
 }