Comments (8)
I have literally never used this myself (barely ever used debug()
either for that matter), but sure ;)
from what-they-forgot.
Hmmm, I have been using debugonce()
lately remotes:::combine_deps()
.
And I think I used when I was doing revdep checks (and PRs) for tibble v2.x. Once you figure out who's screaming, you do debugonce()
on that, then rerun the test.
from what-they-forgot.
What would your workflow be in those situations?
from what-they-forgot.
Generally when I am that far into the weeds debugging something I am planning on fixing it and sending a PR, so generally I do the standard clone + load_all() + browser()
thing.
But I can see how it would be useful and we probably should mention it.
from what-they-forgot.
It's true that I was in the the source package at that point. So I think I did eventually use browser()
.
from what-they-forgot.
Thinking about this more I guess I typically use options(error = recover)
when there is something in another package where you could potentially use debugonce()
from what-they-forgot.
I think an interesting axis on which to compare all of these is how ephemeral they are, i.e. what it feels like to turn the debugging approach ON and OFF. I suspect that influences what we are choosing in different situations.
from what-they-forgot.
And also the affordances in our preferred working environment, e.g. RStudio vs. emacs/vim, whether you have the source package yet or not, etc.
from what-they-forgot.
Related Issues (20)
- Update front matter
- code fix
- Package-assisted path handling, via @EdwinTh HOT 3
- Stack traces for crashes on windows
- Debugging with lldb
- Should system prep verification use `pkgbuild::check_build_tools()`?
- GitHub search examples
- macOS header problem HOT 1
- Definitive to guide to re-installing a package on Windows HOT 7
- link broken HOT 4
- Mention user vs project specific .Renviron in the chapter about startup files?
- chapter 9 :ref devtools instead of remotes
- Chapter 8.4: Example for path expansion
- Move `master` branch to `main` HOT 1
- [WIP] `xcode-select --install` seems to not work anymore
- For “Maintaining R”, would it be worth adding architecture-specific `R_LIBS_USER` paths?
- Mention `base` package Rprofile as a point of interest? HOT 1
- warn against `save`
- mention memoise package in chapter 1.6 - objects that take a long time to create?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from what-they-forgot.