The Source for Java Technology Collaboration

Home » java.net Forums » Java Desktop Technologies » Swing & AWT

Thread: How to evaluate expressions in the java source debug context?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is answered.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 4 - Last Post: Sep 25, 2007 6:30 AM by: hotjar
hotjar

Posts: 12
How to evaluate expressions in the java source debug context?
Posted: Sep 24, 2007 5:32 AM
 
  Click to reply to this thread Reply

As a swing developer, I usually need to debug something in the java source debug context. That's always not obvious(Even in this morning, I was pissed off for someone let a JTree's root node have a parent. That cost me two hours to debug and guess), and I got used to cost my whole lovely morning to find a clue in the java source code. Because I can not evaluate expressions in the java source debug context, at least, eclipse does that way.

I want to konw if Netbeans can do that, or if that is a way to make eclipse work.

Thank you in advance.

hotjar

Posts: 12
Re: How to evaluate expressions in the java source debug context?
Posted: Sep 24, 2007 5:42 AM   in response to: hotjar
 
  Click to reply to this thread Reply

When the highlight debug cursor entered the java source code line, I was so helpless.

Does anybody have a way to end that misery?

ewin

Posts: 39
Re: How to evaluate expressions in the java source debug context?
Posted: Sep 24, 2007 6:56 AM   in response to: hotjar
 
  Click to reply to this thread Reply

You might want to work on the way you formulate your question. It is hard to guess what you really want.

If you want expression evaluation in NetBeans press Ctrl-F9 while debugging. For more information use the build-in help:

Help -> Help Contents -> Java Project Basics | Debugging Java Applications

kirillcool

Posts: 796
Re: How to evaluate expressions in the java source debug context?
Posted: Sep 24, 2007 8:52 AM   in response to: hotjar
Correct
  Click to reply to this thread Reply

I guess you're looking for a debug version of JDK. You can install one from [1].

[1] http://download.java.net/jdk6/binaries/

hotjar

Posts: 12
Re: How to evaluate expressions in the java source debug context?
Posted: Sep 25, 2007 6:30 AM   in response to: hotjar
 
  Click to reply to this thread Reply

That means a lot to me. Thank you, kirillcool!

Your reply will save me a lot of time!




 XML java.net RSS