title: Inspect the return value of a method in jdb
body: <p>Suppose in jdb I am at the following spot in the code: </p>
  
  <pre><code>return 22; 
  --&gt;} 
  </code></pre>
  
  <p>How do I dump the value of the object (or primitive) that is going to be returned? It seems like a pain to have to store the return value in a local variable before returning it, just so that I can see what's going to be returned. </p>
  
  <p>Effectively, I want to do in jdb what is described in the link for gdb: </p>
  
  <p><a href="https://stackoverflow.com/questions/267674/inspect-the-return-value-of-a-function-in-gdb">How to inspect the return value of a function in GDB?</a></p>