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

Inline results of edebug steps #9

Closed
nikolavojicic opened this issue Apr 2, 2023 · 2 comments
Closed

Inline results of edebug steps #9

nikolavojicic opened this issue Apr 2, 2023 · 2 comments

Comments

@nikolavojicic
Copy link

nikolavojicic commented Apr 2, 2023

It would be nice to display the results of edebug steps inline, the same way they are displayed in CIDER.

@nikolavojicic
Copy link
Author

nikolavojicic commented Apr 3, 2023

Easy way is via advices...

(advice-add 'edebug-safe-prin1-to-string
            :before
            (lambda (value)
              (eros--eval-overlay
               value
               edebug-point)))

This works but it's probably not idiomatic.

EDIT: it doesn't work if debugger jumps into another buffer.

@codeasone
Copy link

See also: https://xenodium.com/inline-previous-result-and-why-you-should-edebug/

The advices in this post seems to work seamlessly, incl. across multiple buffers where multiple defun's are instrumented e.g.

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

No branches or pull requests

2 participants