Python Programming - Debugging - Discussion

Discussion Forum : Debugging - General Questions (Q.No. 20)
20.
What is the purpose of the Python pdb.post_mortem() function?
Exits the program immediately
Creates a post-mortem debugger session after an unhandled exception
Steps into a function or method call
Inserts a breakpoint in the code
Answer: Option
Explanation:
The pdb.post_mortem() function is used to create a post-mortem debugger session after an unhandled exception, allowing examination of the program state at the point of the exception.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.