debugging in NetBeans: Q about using watches...
807599Nov 8 2006 — edited Nov 9 2006Hi all--
Sorry I know this isn't specifically a netbeans forum but I'm guessing a bunch of people here use netbeans and the Netbeans.org site doesn't have a forum to post questions. They have these bizarre mailing lists...
Anyway, my question is how do I add a watch on a variable that is in a subclassed JFrame that I run on the event dispatching thread? I have a Dimension object that I wish to monitor the value of the toString() call. But when I right click and add a watch on the variable (called newSize)
the watch just reports ">No current context (stack frame)<" for the value field. I even tried just putting a watch on the integer and it gave me that message.
The netbeans (v5.5) instructions simply say to add a watch by right clicking or ctrl+shift+F7 which I've done...but keep getting ">No current context (stack frame)<" for the value.
I've even tried adding a watch to an int in the main() method that runs the JFrame subclass on the event dispatching thread but to no avail...It too reports ">No current context (stack frame)<"
What am I doing wrong? Or otherwise is this a bug in netbeans?
Thanks for the help.
I apologize again if this is too off-topic. And if so, can someone point me to a netbeans forum that is similar to this one where I can post this question?