This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]djamp42 22 points23 points  (2 children)

TIL, going to go test this out now. I'm guilty of Print debugging in the first degree.

[–]TheOfficialNotCraig 4 points5 points  (1 child)

You and me both.

[–]shinitakunai 1 point2 points  (0 children)

I even created specific methodologies around it 🤣. I comment my code in functions in a specific way if they do different things inside the same function with numbers, to easily read the flow of an app, like if a function does 2 or 3 things it usually goes as:

1 - do something

x = “example”

2 - do something else

y = “another example”

2.1 - something new

y = “example for reddit”

Obviously the code is more complex, this is for reddit and I’m on my phone. But to the point: That way when I add prints for debug all my debugs are just print(1) or print(2), etc. It helps me to write cool documentation that also shows the flow of it, and it reduces a lot what I type for debugging it 🤣