Fork me on GitHub
#cursive
<
2020-04-30
>
kenny21:04:40

Anyone know if there’s something like this in IntelliJ? https://twitter.com/dan_abramov/status/1255692247061929991?s=21

alexmiller21:04:11

basically looks like tap>

tanzoniteblack21:04:03

or just log/spy?

tanzoniteblack21:04:27

neither are exactly the same, but can be used with similar purpose

tanzoniteblack21:04:39

interesting though, I'd not seen that before in the chrome devtools

dpsutton22:04:54

there's no source code modification at all though. no accidental commits or commit hooks needed

👍 8
cfleming22:04:18

If you’re working with Clojure rather than CLJS you can use the debugger for this - set a breakpoint, set it to not suspend but instead to evaluate and print an expression.

kenny01:05:50

Oh cool! This is it!

kenny01:05:27

Sometimes the suspend is annoying when working in a list and having everything be printed is way nicer.

kenny01:05:53

IntelliJ's is even cooler since it gives you a useful default of "breakpoint hit" message and/or stack trace. Sweet!

cfleming22:04:00

I’m guessing that the Chrome implementation does the same.