Skip to content

Commit 80bfb7b

Browse files
committed
update readme examples
1 parent bf0d2b8 commit 80bfb7b

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,23 @@ import chatpdb; chatpdb.set_trace()
2727
```
2828
Simply type `y` to receive a summary of the current code and stack trace.
2929
```python3
30-
> /Users/you/sample.py (9) test_function()
31-
8
32-
----> 9 import chatpdb; chatpdb.set_trace()
33-
10
34-
ipdb> y
35-
You are currently in a python debugger
30+
> /Programming/test-chatpdb/lib.py(2)echo_platform()
31+
1 def echo_platform(platform: str):
32+
----> 2 print("You are running on:" + platform)
33+
3
34+
ipdb> y
35+
The exception occurred because the function `echo_platform` tries to concatenate the string "You are running on:" with the `platform` variable, which is `None`. [...]
3636
```
37+
3738
Type `y "prompt"` to ask a question.
3839

3940
```python3
40-
> /Users/you/sample.py (9) test_function()
41-
8
42-
----> 9 import chatpdb; chatpdb.set_trace()
43-
10
44-
ipdb> y "what does chatpdb do in this case?"
45-
You are currently in a python debugger, etc.
41+
> /Programming/test-chatpdb/lib.py(2)echo_platform()
42+
1 def echo_platform(platform: str):
43+
----> 2 print("You are running on:" + platform)
44+
3
45+
ipdb> y "Why is platform coming through as None?"
46+
The variable `platform` is coming through as `None` because the environment variable `"PLATFORM"` is not set in your system's environment variables. [...]
4647
```
4748

4849

0 commit comments

Comments
 (0)