Replies: 1 comment
-
I stabbed it. Here's the PR. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For example, I'm looping over some data in a very convoluted way (due to nature of the problem my code solves), but it crashes when given some sort of edge-case data, so I need to debug it.
Right now I'm using this:
However,
count()
will be run (and take CPU time) even in prod; it'd be nice if I could do this:Because then,
count()
will only be run when logging.I quickly glanced at the code and it seems to be pretty easy to implement. Should I give it a stab?
Beta Was this translation helpful? Give feedback.
All reactions