Reply to comment

Java debugger cannot show last return value

It seems that Java debugger protocol (JVMTI) hasn't got good support for access to return value of function. This feature is supported for instance in Microsoft Visual C++, it is usually shown in the "variable's view" as a pseudo variable. The access to return value should be implemented in Java 6.0 (JDWP, JDI: Add return value to Method Exit Event), but it is inefficient and it requires setting up method tracing on method exits to be able to obtain the return value. Method tracing is slow and is different than step requests, see Eclipse 40912 bug report.

The only solution is to add method call to Expressions view, but there is a side effect - method will be called from this view.

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br>
  • Lines and paragraphs break automatically.

More information about formatting options

Mollom CAPTCHA (play audio CAPTCHA)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.