debugme
debugme copied to clipboard
Easy and efficient debugging for R packages
What would it take to make it easier to turn debugging messages on (and off) during development? I think just a helper function would be nice versus manually setting an...
We could add ids to the debug messages somehow, and then jump to their place in the code quickly, either just showing the code on the screen like `tracer`, or...
Q: when a `"!DEBUG ..."` message does not meet the `!`-threshold, why is its ``` `expression` ``` still evaluated? ```r .onLoad sessionInfo() R version 4.0.3 (2020-10-10) Platform: x86_64-w64-mingw32/x64 (64-bit) Running...
First, thanks for putting this package together it is nice having the ability to have debug statements in a package with almost no cost. I recently started adding debugme to...
enabling debugme through R environment variable (and building the package again), modifies data.frames in R6 class fields from data.frames to lists. zzz.R ``` .onLoad testClass object generator Public: df2: data.frame...
- [ ] Make sure that enabling/disabling of {plogr} is consistent with the {debugme} strategy - [ ] Make {plogr} use the same output routine - [ ] Show a...
Could be implemented with an argument to `debugme()`, like `debugme::debugme(formatter = debugme:::handle_dynamic_code(.))` . Perhaps even with the default `formatter = .`.
Even if they don't explicitly support `debugme`. Just add traces to both at the beginning and end of functions. Could be a little too much, though.
- [ ] Use comments, if possible. Comments look nicer, and they really have zero overhead. (It might not be possible, as it probably requires re-parsing the code, especially if...