I know profilers and debuggers are a boon for productivity, but anecdotally I’ve found they’re seldom used. How often do you use debuggers/profilers in your work? What’s preventing you? conversely, what enables you to use them?

  • Nicktar@beehaw.org
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    2 years ago

    I’ve seen the fun of “prints everywhere” in production when a colleague forgot to remove a “Why the fuck do you end up here?” followed by a bunch of variables before committing a hot-fix… Customers weren’t to amused…

    Edit: That was a PHP driven web shop and the message ended up on to of the checkout page

    • MagicShel@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      That must’ve prompted a bit of existential crisis in some shoppers. I can see going to purchase some useless consumer shit online and getting a message “Why the fuck do you end up here?” and just closing my browser and rethinking my life decisions.

    • @mastodon.social
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      @Nicktar I usually prefer the prints everywhere approach, but of course printing to STDERR not STDOUT - so it ends up in a log, and not in the program output 😅 won’t make that mistake again!