r-lib / debugme

Easy and efficient debugging for R packages
https://r-lib.github.io/debugme/
Other
147 stars 10 forks source link

Differentiate between first and subsequent entries for the same function #44

Closed krlmlr closed 3 years ago

krlmlr commented 3 years ago

This helps understand if we're looking at debug messages from different or from the same function.

For f() printing one message and then calling g() which prints 3 messages, this gives:

Before:

f
+-g1
+-g2
+-g3

After:

f
+-g1
 -g2
 -g3
gaborcsardi commented 3 years ago

Super cool! Thanks a lot!