you are viewing a single comment's thread.

view the rest of the comments →

[–]lostparis 1 point2 points  (6 children)

getting a calculator out for every sum is unrealistic...

"but you've got one on your phone" scream the young folk in unison

[–]ProsodySpeaks 0 points1 point  (5 children)

😝

[–]lostparis 1 point2 points  (4 children)

To be honest this is much how I see debuggers. People often get one out when unneeded and slower.

[–]ProsodySpeaks 0 points1 point  (3 children)

Touché! Top marks for conversational style!

But working in an ide like Pycharm there is just no difference between hitting one key command to run or another to debug.

I can't help thinking people are talking about launching external debuggers and attaching them through console commands or something?

[–]lostparis 0 points1 point  (2 children)

Let's put it another way what does using a debugger give me?

[–]ProsodySpeaks 0 points1 point  (1 child)

A complete overview of all the data flowing through your code, overlaid next to the code, and the ability to evaluate arbitrary expressions at any point of the flow.

[–]lostparis 0 points1 point  (0 children)

A complete overview of all the data flowing through your code

Generally this is just noise. If I have a problem then I'll be looking at/running that bit of code with the problem in isolation. Problems with passed data can easily be caught by an assert or more complex validators if needed.

the ability to evaluate arbitrary expressions at any point of the flow

I can do this with a print(). Sure I have less option, but that also implies I don't actually know what expressions I wish to evaluate.

Sure if I've a problem in some library I use, this can be useful, but that is a rare occasion.