-
-
Notifications
You must be signed in to change notification settings - Fork 647
[stacktrace] Allow inspecting ex-data directly #3807
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
Conversation
8a47f7b
to
b7c3a16
Compare
@alexander-yakushev Nice! Looks exactly what I was looking for. Thank You! I will give it a try tomorrow morning! |
Within `*cider-error*`, when clicking directly a top-level exception (any of | ||
them in the cause chain), that specific exception will be inspected with the | ||
CIDER xref:debugging/inspector.adoc[Inspector]. You can also click on the | ||
rendered exception data to inspect it directly. |
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.
Might be a good a idea to add here a couple of screenshots or some short gif video.
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.
Overall the changes look good to me.
cider-inspector.el
Outdated
(interactive) | ||
(cl-assert (numberp index)) | ||
(let ((result (cider-sync-request:inspect-last-exception index))) | ||
(let ((result (cider-nrepl-send-sync-request `("op" "inspect-last-exception" |
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'd probably put a line break before the request list params to narrow the formatting here.
be08c59
to
984dd1f
Compare
Hi, I just tried it, it works as expected and I like it! Thanks again! |
984dd1f
to
57d38fd
Compare
57d38fd
to
9acb56a
Compare
9acb56a
to
704f7a2
Compare
Sister PR: clojure-emacs/cider-nrepl#930
Addresses (partially): #3804.
Here's the end result:

The screenshot doesn't show the mouse cursor, but the printed ex-data is now a clickable button, it gets highlighted on hover, you can click it or press Enter on it or
p
ori
and this will open the inspector showing just theex-data
(not the entire exception).Whole exceptions are still inspectable by clicking the exception classname or Enter or i or p.
I also shuffled some newlines again to fix minor highlighting issues with the stacktraces.