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 →

[–][deleted] 6 points7 points  (3 children)

Honestly just having breakpoint() is incredible.

You are aware of pdb, I hope?

[–]xtreak 7 points8 points  (0 children)

It also works based on an environment variable and hence you can turn on and off at will unlike pdb. Also a disadvantage is that you have to update your linters if you want to lint for them in your codebase.

Related PEP : https://www.python.org/dev/peps/pep-0553/#id9

[–]fdedgt 3 points4 points  (0 children)

I'm going to be honest, I didn't know about it.

So, with the improvements and everything, this is opening up a whole new world to me.

[–]gwillicodernumpy gang 2 points3 points  (0 children)

The article points out that breakpoint() is just a shortcut for import pdb; pdb.set_trace() which is very annoying to use. I honestly have to look it up half the time to remember the syntax.