यह एक उपयोगिता मॉड्यूल है जो नीचे दिए गए कार्यों के साथ पायथन स्रोतों को डीबग करने में मदद करता है
यह मॉड्यूल डेवलपर्स को कई प्रमुख तरीकों से मदद करता है, खासकर जब डिबगिंग और कोड बनाए रखने की बात आती है। यहां प्राथमिक लाभ हैं:
व्हामी, व्हेयरमी, हूकॉल्डमी, कॉल्डट्री और हूसडैडी का लाभ उठाकर, डेवलपर्स अधिक मजबूत, रखरखाव योग्य और आसानी से डिबग करने वाला कोड बना सकते हैं।
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