Skip to content

Commit 2831107

Browse files
committed
add code comment, fix layout (pdb_demo1.py)
1 parent 243b4d7 commit 2831107

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

py_debugger/pdb_demo1.py

+12-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,17 @@
55
import pdb
66

77
def add(num1, num2):
8-
pdb.set_trace()
9-
return num1 + num2
8+
pdb.set_trace()
9+
return num1 + num2
1010

1111
if __name__ == '__main__':
12-
add(4, "abcvswfwe")
12+
"""
13+
pdb useful command
14+
15+
help
16+
a
17+
next
18+
list
19+
step
20+
"""
21+
add(4, "abcvswfwe")

0 commit comments

Comments
 (0)