2 ms·
It's kind of funny, but Python is the only language I regular use the debugger--presumably because it's built-in. I put "if (condition): import pdb; pdb.set_tr
by bsder 6y ago
It's kind of funny, but Python is the only language I regular use the debugger--presumably because it's built-in.
I put "if (condition): import pdb; pdb.set_trace()" all the time and almost never use "print".
So, clearly I don't love "print", I just hate debuggers that are annoying to set up.
I suspect that if other languages had such a convenient "drop me into the debugger" statement, more people would use debuggers.
- db48x 6y agoThe “debugger” keyword in Javascript is similar. I’ve used it frequently!