Tangentially related to unrepl but this could benefit from machine printing and elision:
yeah, anything tree like really
but tracing is a great example of that
I wonder if it works in cljs as well
nah I use the java debugging ifrastructure to have this level of tracing
in fact itโs a JVM tracer
do V8 or JSCore have a public debug API?
This is what i have found: https://nodejs.org/dist/latest-v8.x/docs/api/tracing.html
That JVM tracer is cool, how do you hook it up?
I guess it is in clojure.tools.trace
?
no itโs a new development, tools.trace works by redefining vars
In my case the JVM has to be started with -Xdebug -agentlib:jdwp=transport=dt_socket,server=y,suspend=n
(no explicit port required)
and then I have code to connect the JVM to itself as a debugger
Well that is great, node has a debugging/inspecting layer, not an expert however and it looks very limited: https://nodejs.org/dist/latest-v8.x/docs/api/debugger.html
A bit rudimentary indeed
@cgrand debugging/tracing/repl-driven development could be a killer feature of nrepl
next step is to open a new repl when an exception is thrown
@richiardiandrea you can attach chrome to a running nodejs instance for a full blown debugger
Yeah I have recently enabled boot to work with Dirac for a Repl in there for my colleagues ๐
But it is not the same thing ๐
And I don't personally use it, at some point I will help porting unrepl to cljs just don't have enough time now and when I have time, it is too little and I prefer to tackle smaller problems
re: cljs port, dynamic ns are not seen by require (self-hosted) so: โข either add workarounds in the blob โข fix cljs. Whatโs the best course of procrastination? ๐ต
@cgrand I guess you spoke with D. Nolen already? What did he say? Usually patches to self host are more likely to happen, especially because you have very active projects/maintainers behind it
@richiardiandrea ๐คฆ I forgot you opened the issue for that
the fix should cover both slef-host and regular ๐ to not create yet another divergence
Ok yeah that is tougher then, Darwin already proposed something and got bounced ๐
(don't remember the details now)
๐ถ procrastination isn't good for me ๐ถ