This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I've got socket attach debugging setup and am able to connect to the JVM that is running the applet in my browser (IE9), but the GUI Snapshot option never gets enabled. Breakpoints are getting hit, and object inspection works fine, but trying to find where code is for components would be nice too! This used to work well pre-7.x, though I've never been able to get more than frame outlines to show up in the Snapshot viewer (and then only when hovering over a component.)
The GUI debugger was introduced in 7.1 (issue #198850), and I'm not aware about severe changes since that. However it's true that when I create a simple Applet and debug it in the applet viewer, the "Take GUI Snapshot" action is enabled, but it replies with "No application GUI was found". I've tried in both NetBeans 7.1 and 7.4 with identical results.
The problem is, that there are two AWT-EventQueue threads. One in the main thread group and one in the applet file thread group. The GUI snapshot code does not count with multiple AWT-EventQueue threads.
Hi Martin, thank you for looking into this. I've also experienced the "No application GUI was found" behavior before when debugging applets in my weblogic, but this is something new since I've never had the feature be completely disabled before when debugging applets. It still works fine for things like the AnagramGame project used in the "Using the Visual Debugger in NetBeans IDE" tutorial though, so my first thought was something having to do with my particular setup, but since it worked pretty well initially, I thought it best to write it up. Is there some additional information I can get you that will help in diagnosing the issue?
Thanks. I've already reproduced the problem and I'm working on a fix.
I've fixed the problem of not found application GUI: changeset: 268657:721e7f2f8b96 http://hg.netbeans.org/core-main/rev/721e7f2f8b96 changeset: 268658:8faaaefdf152 http://hg.netbeans.org/core-main/rev/8faaaefdf152 I'll check if I can do something about the empty snapshot of applets and if I can reproduce the disabled Take GUI Snapshot action...
It's been a while since I logged this bug, and I was wondering if any new effort has been put into my initial issue ("GUI Snapshot disabled while debugging applets")? I'm still working on applet (!) and could really use this feature to work in NB 8. Are other experiencing this same issue, or am I a lone sufferer? I guess anyone these days still working in applets is suffering, even if they aren't experiencing this behavior in the IDE. Let me know either way. Thanks!
I was not able to consistently reproduce the disabled Take GUI Snapshot action, therefore I do not have a fix yet. But I have reports from QE about this action being occasionally disabled. I'm busy with new development till 8.1 feature freeze, I'll concentrate more on bugfixes after the feature freeze. This is definitely an issue which I plan to look at again.