You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering, is there a way to make the frames output show by which frame has been called another frame?
For example in recursion we'll get a tree-like frames structure.
Is there an easy way for this task?
This sounds cool but is not supported, though with some substantial work, someone could add this feature.
Right now, the visualizer only shows single instant in time: the execution is on some node of the tree and all of its parents (which is why there's a linear stack, which is that linear sequence of nodes). The work involved would be to merge all of these snapshots together into a tree. The frames don't have unique identifiers, but if each call and return is identified, this should provide the necessary information in principle.
Activity
daveagp commentedon Mar 3, 2017
This sounds cool but is not supported, though with some substantial work, someone could add this feature.
Right now, the visualizer only shows single instant in time: the execution is on some node of the tree and all of its parents (which is why there's a linear stack, which is that linear sequence of nodes). The work involved would be to merge all of these snapshots together into a tree. The frames don't have unique identifiers, but if each call and return is identified, this should provide the necessary information in principle.
AsafJosefMor commentedon Mar 14, 2017
Thanks David.
If I want to keep the frames presented, so it won't disappear after a certain code line was executed. Is there a way to make it so?
daveagp commentedon Mar 15, 2017
It has been a while since I worked on the detailed level of the code. The json is created by the code mentioned here:
https://github.com/daveagp/java_jail/tree/master/cp/traceprinter
The frontend is inside of the repo upon which you're commenting right now.