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 }); }
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); }
public void AddStackTrace(Debug.Location location) { StackTrace.Add(location); }
public void RegisterDebug(Debug.Location location) { Id = Debug.AddNode(location); }