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.
If both JavaSE and C/C++ modules are installed but only C/C++ is activated and if a user calls Attach Debugger then JPDA (Java debugger) is suggested first together with "Activate" button whereas it's expected that a user is going to debug C/C++ application. It is very annoying as it appears every time when Attach Debugger is called.
I don't think this is an ergonomics problem. As far as I know there is no way to specify what debugger is preferred for what project type (java one is selected by some string match). Also the fact the dialog does not remember the last used debugger type is not a flaw of ergonomics.
The dialog *does* remember the last used debugger type. Therefore you have this problem just once after the first start. Due to this, it was not considered to be severe enough to be dealt with yet. To fix this, we'd have to add AttachType.isDefault() method, that would return false by default and implementors could override it to return true when their projects/files are active. I'll prepare an API change...
Well, IMHO it's not really possible to determine which debugger type is the user going to use during attach. The languages can be combined, for instance a C/C++ project can happen to be a part of Java program (JNI library). Thus IMHO it's better when the dialog currently remembers the last used debugger type than it if would suggest a wrong one. Regarding the first invocation, I've added a check for an artificial attach type coming from ergonomics and we try to suggest some already installed one. Fixed by changeset: 195132:1a3b05c191c4 http://hg.netbeans.org/main/rev/1a3b05c191c4 Merged into release701 branch as changeset: 199923:620b34dc1159
Integrated into 'main-golden', will be available in build *201106031000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/1a3b05c191c4 User: mentlicher@netbeans.org Log: #193508 Prefer attach types that do not come from ergonomics.