philoskim / debux

A trace-based debugging library for Clojure and ClojureScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: optionally return results instead of printing

Cyrik opened this issue · comments

I've been thinking that it would be great to be able to get the debug results so that it is possible to show them in different UI's, similar to re-frame-debux, but without the re-frame dependency. Other use cases would be logging or piping into REBL, reveal or portal.
I've already started a prototype to play around with designs for the interface. If you are interested in the feature I'll fork and push my changes.

I have been interested in this feature as well. Please send me your pull request for this feature and I will integrate it as much as possible.

Thanks for this feature request and upcoming your pull request!!

i've been playing around with a representation of the results that has all the data in a way that can be used to display it. I'm not happy yet, but your input is very welcome

Your pull request was moved to a new branch 'multiple-outputs'.

@philoskim hey, sorry I didn't get back to this for some time. Hoping to continue working on this sometime this week and try to make debux a dependency of my own lib.

I'm also quite interested in this, as I want to display the trace data-structure in portal. I know that some of this has been done, because I see that @Cyrik 's fork of debux can be used as the inner layer of omni-trace. How much of that work is upstreamable? If it's not, was there some agreement of the shape of the datastructure?

Sorry it took so long @meditans. My version should be mergable. I think there's a tiny bit of cleanup left to not waste memory if you're only printing.

Would this also allow the result to be used in a repl?

Yes it would, although as @meditans said, my implementation is still a bit messy.