Python Programming - Debugging - Discussion

Discussion Forum : Debugging - General Questions (Q.No. 8)
8.
In Python, what is the purpose of the pdb.set_trace() function?
To insert a breakpoint in the code for debugging
To print debugging information to the console
To exit the program immediately
To step into a function or method call
Answer: Option
Explanation:
The pdb.set_trace() function is used to insert a breakpoint in the code for debugging, allowing interactive debugging at that point.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.