Skip to content

Commit 4a7296b

Browse files
authored
added breakpoint. closes yasoob#195 (yasoob#200)
1 parent a61e0c9 commit 4a7296b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

debugging.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,7 @@ function.
5858
These are just a few commands. ``pdb`` also supports post mortem. It is
5959
also a really handy function. I would highly suggest you to look at the
6060
official documentation and learn more about it.
61+
62+
**Note:**
63+
64+
It might seem unintuitive to use `pdb.set_trace()` if you are new to this. Fortunately, if you are using Python 3.7+ then you can simply use the `breakpoint()` [built-in function](https://docs.python.org/3/library/functions.html#breakpoint). It automatically imports `pdb` and calls `pdb.set_trace()`.

0 commit comments

Comments
 (0)