import logging
try:
    raise Exception('An exception message with valuable information.')
except:
    logging.exception('Error in test code')
How can I see the details of an exception in Python's debugger?