Skip to main content

How to evaluate expressions in the java source debug context?

4 replies [Last post]
hotjar
Offline
Joined: 2007-07-19

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.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hotjar
Offline
Joined: 2007-07-19

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

Your reply will save me a lot of time!

kirillcool
Offline
Joined: 2004-11-17

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

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

ewin
Offline
Joined: 2005-07-15

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:

[i]Help -> Help Contents -> Java Project Basics | Debugging Java Applications[/i]

hotjar
Offline
Joined: 2007-07-19

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

Does anybody have a way to end that misery?