-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[debugger] Add P command to inspect the currently evaluted value #613
Conversation
051ca58
to
4f60783
Compare
There is an alternative approach: |
@@ -305,6 +305,7 @@ this map (identified by a key), and will `dissoc` it afterwards."} | |||
"n" :next | |||
"o" :out | |||
"p" :inspect | |||
"P" :insPect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't name the keyword differently? This seems pretty confusing to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed suit with :continue
and :Continue
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:inspect-current-value
is wordy and will all indentation in read-debug-command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I just remembered this. :-) I recall I had the same misgivings about it, but space is truly at a premium.
Another alternative (slightly breaking): we can switch |
I completely agree. Let's swap the two commands. |
Agreed as well. |
Doing this turns out to be more annoying than I thought. Just adding a command with the key Ideas? |
Maybe it's time we start hiding some of these commands from the prompt. At some point "self-documented" starts to turn-into "confusing". Additionally, it sounds odd that the order of the commands is given by the order of keys in a hash-map. This order should probably be decided by the frontend (cider.el, in this case). |
I completely agree. I think we should tweak the UI code in general to give control to the users over what's shown be default as well. |
4f60783
to
1039df5
Compare
Can we perhaps start with this, and think about improving the presentation side later? I'm afraid I can't properly implement either the help window, and replacing the |
Although I think such improvements are beyond the scope of this PR, I don't like that we'll have Can we withhold this while someone implements at least some small fix on the Emacs side? Simply hiding |
Let's post some ticket on CIDER's tracker so we won't forget about it. I'm juggling a million things these days, but if there are no volunteers I can rework myself the CIDER side next week. |
One note on this point - as CIDER is the only editor that uses the debugging functionality from cider-nrepl (to my knowledge at least) I think that breaking compatibility is not really a concern here. |
FYI - we'll soon unblock this with #654 |
I helped to rebase the changes in this branch, see https://github.com/yuhan0/cider-nrepl/tree/inspect-current |
@yuhan0 I guess you can just open a new PR, so we can finish this. I'm sure @alexander-yakushev won't mind. |
Sure, no problem. I'd love to see it merged. |
Closing in favour of #655. |
I can't possibly count how many times I struggled to inspect the value that is right there in the debugger, right next to my cursor, teasing me with its printed representation, but impossible to inspect because I didn't
let
it to anything.These times are no more. This little fix will make it possible to press
P
while in the debugger to inspect the value of the latest debugging step.