Skip to content
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

CIDER trace should return inspectable data (not text) #3737

Open
bsless opened this issue Sep 2, 2024 · 1 comment
Open

CIDER trace should return inspectable data (not text) #3737

bsless opened this issue Sep 2, 2024 · 1 comment
Assignees

Comments

@bsless
Copy link

bsless commented Sep 2, 2024

Following the discussion in https://clojurians.slack.com/archives/C0617A8PQ/p1725002128419939

I think the best API for CIDER's trace would be to return data interactively via the inspector, rather than text which gets unwieldy

Describe the solution you'd like

Instead of a traced function printing to the REPL window, users will be able to call cider-inspect-trace. Select from traced functions? Then the trace as data will open via the inspector.

@bbatsov
Copy link
Member

bbatsov commented Sep 2, 2024

Yeah, something along those lines would be good. Alternatively we can have some defcustom to directly open the trace output in the inspector instead of printing it to the REPL or keep a registry of the traced evaluation (e.g. the last 10 or something) and be able to select one of them to inspect it.

I'm sure @alexander-yakushev will have some interesting ideas on the front, as our Master of Inspection & Tracing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants