this post was submitted on 22 Jun 2023
1 points (100.0% liked)

Programming

13269 readers
2 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 1 year ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 1 year ago* (last edited 1 year ago) (2 children)

Uh, what? How do people do stuff without debuggers? :D

I only use a profiler when I have performance issues, but I use the debugger constantly.

edit:

what enables you to use them?

Uh, I set a breakpoint and run the app? Or I hit an exception, which also stops execution at that point?

[–] [email protected] 1 points 1 year ago (1 children)

How do people do stuff without debuggers? :D

Another way to develop would be through iterating within a Unit Test that you don't plan to keep around.

Uh, I set a breakpoint and run the app?

To add a bit more context, it's more difficult to configure a debugger when the application is running within something like Docker. How difficult? That depends on the language and tools you're using.

[–] [email protected] 1 points 1 year ago* (last edited 1 year 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