python:debug
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판이전 판다음 판 | 이전 판 | ||
python:debug [2020/07/14 22:35] – rex8312 | python:debug [2025/02/20 02:15] (현재) – rex8312 | ||
---|---|---|---|
줄 2: | 줄 2: | ||
| Examine exception from interpreter |jupyter notebook ' | | Examine exception from interpreter |jupyter notebook ' | ||
- | | Pinpoint variables in scope |import IPython; IPython.embed() | + | | Pinpoint variables in scope |import IPython; IPython.embed() | |
+ | | Pinpoint variables in scope |import code; code.interact(local=locals()) | | ||
| ::: |whos | | | ::: |whos | | ||
| Set breakpoint | | Set breakpoint | ||
줄 25: | 줄 26: | ||
os.environ[' | os.environ[' | ||
breakpoint() | breakpoint() | ||
+ | |||
+ | set PYTHONBREAKPOINT=" | ||
</ | </ | ||
줄 31: | 줄 34: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | |||
+ | ===== 원격 embed ===== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
===== print 문 대안 ===== | ===== print 문 대안 ===== | ||
+ | * https:// | ||
* https:// | * https:// | ||
python/debug.1594766146.txt.gz · 마지막으로 수정됨: (바깥 편집)