What does it mean to move a frame up or down?

20 views
Skip to first unread message

Siddharth Jain

unread,
Mar 4, 2020, 1:02:29 PM3/4/20
to delve-dev
I am going through the Delve CLI documentation here: https://github.com/go-delve/delve/tree/master/Documentation/cli

I was wondering if anyone could explain what does it mean to move a frame up or down. In general the docs page is extremely bland and would be good to provide more details and examples on what various commands do.


 The docs just say
downMove the current frame down.

upMove the current frame up.

Derek Parker

unread,
Mar 4, 2020, 1:25:21 PM3/4/20
to delve-dev, Siddharth Jain
Hey,

I agree the docs could be a lot less vague in this regard.

Here we are talking about the stack frame where up/down will move you up or down in the function call stack.

- Derek
--
You received this message because you are subscribed to the Google Groups "delve-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delve-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/delve-dev/7776b29a-7b6f-457f-9fba-12ab7c27499f%40googlegroups.com.

Alessandro Arzilli

unread,
Mar 4, 2020, 3:08:06 PM3/4/20
to Derek Parker, delve-dev, Siddharth Jain
Pdb (python's debugger, which I believe is the "insipration" for those commands) has:


d(own) [count]

Move the current frame count (default one) levels down in the stack trace (to a newer frame).

u(p) [count]

Move the current frame count (default one) levels up in the stack trace (to an older frame).
> To view this discussion on the web visit https://groups.google.com/d/msgid/delve-dev/a9b1163b-b66b-4ef2-82e0-b63f5a0c6c84%40Spark.
Reply all
Reply to author
Forward
0 new messages