Skip to content

Commit

Permalink
Update debug_guide.md (Azure#28934)
Browse files Browse the repository at this point in the history
  • Loading branch information
msyyc authored Feb 22, 2023
1 parent 8049a03 commit cf49659
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion doc/dev/debug_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This guide is to help Python SDK users to get the process about how SDK call REST api

(1) Copy the following code in your .py file
```
```python
import sys
import logging

Expand All @@ -18,6 +18,15 @@ handler.setFormatter(formatter)

![Position example](./debug_guide_position.png "Position example")

nit: the following code has same effect:
```python
import sys
import logging

logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
stream=sys.stdout)
```
(2) Run your .py program and you could find the log info in screen. It is convenient to get the process about how SDK call REST api:

![example](./debug_guide_example.png "example")

0 comments on commit cf49659

Please sign in to comment.