title: How can I see the details of an exception in Python's debugger?
body: <p>Sometimes while I'm debugging an exception will be raised.</p>
  
  <p>For example, consider this code:</p>
  
  <pre><code>def some_function():  # Pretend this function is in a library...
      # ...and deep within the library is an exception:
      raise Exception('An exception message with valuable information.')
  
  import pdb; pdb.set_trace()
  try:
      some_function()  # Pretend I am debugging from this point using pdb.
  except:
      pass
  </code></pre>
  
  <p>While debugging from the <code>some_function()</code> call, if I issue a <code>next</code> command I will see the following details about the exception that was raised [and caught]:</p>
  
  <pre class="lang-none prettyprint-override"><code>Exception: Exceptio...ation.',)
  </code></pre>
  
  <p>Here's a straight copy / paste from the terminal I was working in:</p>
  
  <pre class="lang-none prettyprint-override"><code>&gt; /tmp/test.py(7)&lt;module&gt;()
  -&gt; some_function()  # Pretend I am debugging from this point using pdb.
  (Pdb) next
  Exception: Exceptio...ation.',)
  &gt; /tmp/test.py(7)&lt;module&gt;()
  -&gt; some_function()  # Pretend I am debugging from this point using pdb.
  (Pdb) 
  </code></pre>
  
  <p>It would be useful to see the entire exception message.  How can I do this in pdb?</p>