Python Programming - Debugging - Discussion

Discussion Forum : Debugging - General Questions (Q.No. 15)
15.
What does the Python traceback.print_exc() function do?
Terminates the program immediately
Prints debugging information to the console
Inserts a breakpoint in the code
Prints the exception traceback to the console
Answer: Option
Explanation:
The traceback.print_exc() function in Python is used to print the exception traceback to the console during debugging.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.