moodymudskipper / flow

View and Browse Code Using Flow Diagrams
https://moodymudskipper.github.io/flow/
Other
395 stars 26 forks source link

flow_debugonce doesn't work on `obj$fun` #93

Open moodymudskipper opened 2 years ago

moodymudskipper commented 2 years ago

That's annoying if we wish to debug an unexported function, e.g.

flow::flow_debugonce(shiny:::ReactiveVal$new)

moodymudskipper commented 2 years ago

This is because we use trace() and unlike debugonce() trace only accepts fun or pkg::fun / pkg:::fun. I think fixing this requires us to write our version of trace, hard with no huge upside.