Пример #1
0
 public Debug.Frame GetFrame(int index, Debug.Location location)
 {
     return(new Debug.Frame()
     {
         Index = 1,
         Name = "Frame Name",
         File = Debug.GetFileName(location.FileId),
         Line = location.LineNr
     });
 }
Пример #2
0
        public List <Debug.Frame> GetStackTrace(Debug.Location location)
        {
            var frames = new List <Debug.Frame>();

            frames.Add(GetFrame(1, location));

            var scope = this;
            var index = 2;

            while (scope.Parent != null && scope.EntryNode != null)
            {
                var entryLocation = Debug.GetNodeLocation(scope.EntryNode.Id);

                frames.Add(Parent.GetFrame(index, entryLocation));

                index++;
                scope = scope.Parent;
            }

            return(frames);
        }
Пример #3
0
 public void AddStackTrace(Debug.Location location)
 {
     StackTrace.Add(location);
 }
Пример #4
0
 public void RegisterDebug(Debug.Location location)
 {
     Id = Debug.AddNode(location);
 }