Giter Club home page Giter Club logo

Comments (8)

jimhester avatar jimhester commented on August 11, 2024

I have literally never used this myself (barely ever used debug() either for that matter), but sure ;)

from what-they-forgot.

jennybc avatar jennybc commented on August 11, 2024

Hmmm, I have been using debugonce() lately 🤔. Context: debugging things in another package . For example, I used it when figuring out that devtools / remotes problem. I wanted to call devtools but drop into the debugger when I entered 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.

jennybc avatar jennybc commented on August 11, 2024

What would your workflow be in those situations?

from what-they-forgot.

jimhester avatar jimhester commented on August 11, 2024

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.

jennybc avatar jennybc commented on August 11, 2024

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.

jimhester avatar jimhester commented on August 11, 2024

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.

jennybc avatar jennybc commented on August 11, 2024

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.

jennybc avatar jennybc commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.