Discussion:
Debug windows are empty
Hong
17 years ago
Permalink
I am sorry for my ignorance. I am new in using NetBeans though I have done quite some Java programming.



I am debugging an applet. When it stops at a break point, all the debug windows such as Watches, Local Variables, Breakpoints, etc. are empty. I cannot add new watches. I have quite a few breakpoints, but the breakpoints window lists none.



Could you anyone point out what I am missing here?



Thanks,

------------------------
Hong
Peter Pis
17 years ago
Permalink
Hi Hong,

could you please provide further details? Version of NetBeans, jdk,
what's the platform you're using?

Debugging just works fine in NetBeans IDE 6.5 for me. Breakpoints in
applet are hit, WATCHES and LOCAL VARIABLES windows are in sync accordingly.

Regards,
-Peter
Post by Hong
I am sorry for my ignorance. I am new in using NetBeans though I have done quite some Java programming.
I am debugging an applet. When it stops at a break point, all the debug windows such as Watches, Local Variables, Breakpoints, etc. are empty. I cannot add new watches. I have quite a few breakpoints, but the breakpoints window lists none.
Could you anyone point out what I am missing here?
Thanks,
------------------------
Hong
Hong
17 years ago
Permalink
Peter, thanks for the response.



I downloaded the latest version that is 6.5. My OS is Vista (sorry for me).



I have found the problem is more complicated. The scenario described in my original post happened when I right-clicked the Java file of the applet and hit debug. At that point of time, I did not have a Main class in the project. Since then I have created a Main class. Now I can run the the project without any problem (apparently I could not before). After seeing your response, I went back to right-click the applet Java file and hit debug then found everything was working fine - local variables, watches, etc.



However, when I click "debug project" now, the debugger starts but hangs. The right-bottom corner shows "test (jws-debug)" with a progress bar showing a little progress without moving. The upper memory windows shows N/145.9MB where N keeps increasing. I wait for minutes without seeing any progress. I have to click "x" at the right bottom corner to stop the debugger. The is 100% repeatable.



Right now, I am happy with clicking the applet file to debug it.

------------------------
Hong
Peter Pis
17 years ago
Permalink
Hong,


here come the steps how to debug applet remotely:
http://wiki.netbeans.org/FaqDebuggingAppletRemotely


Anyway, could you please file an issue against debugger [1]? Please
attach there messages.log (located in "<netbeans_user_dir>/var/log")

Thanks,
-Peter

[1] http://www.netbeans.org/issues/enter_bug.cgi?component=debuggerjpda
...
Continue reading on narkive:
Loading...