File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,26 @@ description: This function drops you into the debugger at the call site. Specifi
15
15
</base-disclaimer-title >
16
16
<base-disclaimer-content >
17
17
This function drops you into the debugger at the call site [...].
18
+ <br/>
19
+ Python breakpoint() calls Python debugger at a given line
18
20
</base-disclaimer-content >
21
+
19
22
</base-disclaimer >
20
23
21
- <!-- remove this tag to start editing this page -->
22
- <empty-section />
23
- <!-- remove this tag to start editing this page -->
24
+ ```
25
+ # Create a loop over 5 integers
26
+ for i in range(5):
27
+ # Stream i to stdout
28
+ print(i)
29
+ # Create breakpoint at # 3
30
+ if i == 3:
31
+ breakpoint()
32
+ #Output
33
+ 0
34
+ 1
35
+ 2
36
+ 3
37
+ > c:\users\user\path\to\your\project\example.py(24)<module>()
38
+ -> for i in range(5):
39
+ (Pdb)
40
+ ```
You can’t perform that action at this time.
0 commit comments