2581
GB
What is 'printf debugging' and what is its key limitation that debugger-based debugging overcomes?
IN
'प्रिंटफ डिबगिंग' क्या है और इसकी प्रमुख सीमा क्या है जिसे डिबगर-आधारित डिबगिंग खत्म कर देती है?
A
Printf debugging is a deprecated technique never used by professional software engineers
प्रिंटफ़ डिबगिंग एक अप्रचलित तकनीक है जिसका उपयोग पेशेवर सॉफ़्टवेयर इंजीनियरों द्वारा कभी नहीं किया जाता है
B
Printf debugging inserts print statements to observe execution state — its key limitation is that it requires code modification and recompilation for each investigation step and cannot interactively explore state at runtime; debuggers allow inspection without code changes
प्रिंटफ डिबगिंग निष्पादन स्थिति का निरीक्षण करने के लिए प्रिंट स्टेटमेंट सम्मिलित करता है - इसकी मुख्य सीमा यह है कि इसमें प्रत्येक जांच चरण के लिए कोड संशोधन और पुनर्संकलन की आवश्यकता होती है और रनटाइम पर इंटरैक्टिव रूप से स्थिति का पता नहीं लगाया जा सकता है; डिबगर्स कोड परिवर्तन के बिना निरीक्षण की अनुमति देते हैं
C
Printf debugging is superior to debuggers for multithreaded programs because it is non-intrusive
प्रिंटफ डिबगिंग मल्टीथ्रेडेड प्रोग्राम के लिए डिबगर्स से बेहतर है क्योंकि यह गैर-घुसपैठकारी है
D
Printf debugging is only possible in languages with a built-in print function
Printf डिबगिंग केवल अंतर्निहित प्रिंट फ़ंक्शन वाली भाषाओं में ही संभव है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Printf debugging is actually widely used even by experienced engineers — especially in distributed systems where attaching a debugger is impractical. Its limitation: each new piece of information requires a code change, rebuild, and redeploy cycle. Debuggers allow interactive inspection of any variable, stack frame, or memory address without touching the code — enabling much faster investigation cycles for local bugs.
व्याख्या (हिन्दी)
प्रिंटफ डिबगिंग वास्तव में अनुभवी इंजीनियरों द्वारा भी व्यापक रूप से उपयोग किया जाता है - विशेष रूप से वितरित सिस्टम में जहां डिबगर संलग्न करना अव्यावहारिक है। इसकी सीमा: प्रत्येक नई जानकारी के लिए कोड परिवर्तन, पुनर्निर्माण और पुन: तैनाती चक्र की आवश्यकता होती है। डिबगर्स कोड को छुए बिना किसी भी वेरिएबल, स्टैक फ्रेम या मेमोरी एड्रेस के इंटरैक्टिव निरीक्षण की अनुमति देते हैं - स्थानीय बग के लिए बहुत तेज़ जांच चक्र सक्षम करते हैं।