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?

  • miniu@beehaw.org
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    This usually depends on which industry you work in, and what language you’re using usually :)

    I work in gamedev, c++, and I ALWAYS use a debugger. There’s no running the game, or even the editor without the debugger connected. No matter if you need it currently or not. You always launch the project through the debugger so if anything comes up you can investigate immediately.

    Profiler is used any time there’s a performance problem.

    • miniu@beehaw.org
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      What enables me to use them is probably that this is very much true for the whole industry so software is built with that in mind.

      For example, we use special “print” statements for some of the errors that if a debugger is running, it will automatically stop the program so you can investigate. Without a debugger, it will just output the error in the log.

      There is no docker, the app is running usually on your local hardware. Consoles are also built with debugger support that you connect to from your PC. So it’s very easy to use. Even connecting to another PC in a local network, for example, an artist or tester hardware, is possible from your computer without a problem. We have all the tools prepared for that.