Python Programming - Debugging - Discussion

Discussion Forum : Debugging - General Questions (Q.No. 18)
18.
What does the Python set_trace() function do in the pdb module?
Exits the program immediately
Inserts a breakpoint in the code for debugging
Prints debugging information to the console
Skips the next loop iteration
Answer: Option
Explanation:
The set_trace() function in the pdb module 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.