Python Programming - Debugging - Discussion

Discussion Forum : Debugging - General Questions (Q.No. 19)
19.
What is the purpose of the Python traceback.format_exc() function?
Terminates the program immediately
Prints debugging information to the console
Formats the exception traceback as a string
Inserts a breakpoint in the code
Answer: Option
Explanation:
The traceback.format_exc() function in Python formats the exception traceback as a string during debugging.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.