이것은 아래 함수를 사용하여 Python 소스를 디버깅하는 데 도움이 되는 유틸리티 모듈입니다.
이 모듈은 특히 코드 디버깅 및 유지 관리와 관련하여 여러 가지 주요 방식으로 개발자를 돕습니다. 주요 이점은 다음과 같습니다.
whoami, whereami, whocallme, Calledtree 및 whosdaddy를 활용하여 개발자는 더욱 강력하고 유지 관리가 가능하며 디버그하기 쉬운 코드를 만들 수 있습니다.
from pdbwhereami import whoami, whereami, whocalledme, calledtree, whosdaddy def debug_utility(): whoami() whoami("I am in test_whoami function") print() whereami() whereami("I am in test_whereami") whereami(obsolete_path = True) whereami(path_depth=6) print() whocalledme() whocalledme(obsolete_path = True) whocalledme(path_depth=6) print() calledtree() tstr = calledtree(verbose=False) print(tstr) calledtree(tree_depth=1) calledtree(tree_depth=2) print() whosdaddy() debug_utility()
[debug_utility] -> [debug_utility] -> I am in test_whoami function [whereami/main.py:71]:debug_utility -> [whereami/main.py:72]:debug_utility -> I am in test_whereami [/home/bhagavan/whereami/main.py:73]:debug_utility -> [/home/bhagavan/whereami/main.py:74]:debug_utility -> [whereami/main.py:93]:-> [/home/bhagavan/whereami/main.py:93]: -> [/home/bhagavan/whereami/main.py:93]: -> #1[/home/bhagavan/whereami/main.py:84]:debug_utility ] ->
pip install pdbwhereami
git clone https://github.com/bhagavansprasad/pdbwhereami.git cd pdbwhereami pip insall ./
부인 성명: 제공된 모든 리소스는 부분적으로 인터넷에서 가져온 것입니다. 귀하의 저작권이나 기타 권리 및 이익이 침해된 경우 자세한 이유를 설명하고 저작권 또는 권리 및 이익에 대한 증거를 제공한 후 이메일([email protected])로 보내주십시오. 최대한 빨리 처리해 드리겠습니다.
Copyright© 2022 湘ICP备2022001581号-3