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 you open window-->debugging-> breakpoints, the list of breakpoints may include files from multiple projects, which cannot easily be identified. It may even include breakpoints in files from projects that are no longer open in the ide. For me, here's how I got to this point (I think): - open project A - open a file in project A, set a breakpoint - open project B - open a file in project B, set a breakpoint (most interesting if the file has the same name as in project A) The breakpoints window shows breakpoints that mention only the file and line number, not the project. Seems like there should be a project column. And/Or that the current project is easily identifiable. Now... - close project A The breakpoints window still shows breakpoints in project A files.
This is a general Netbeans infrastructure problem :( Breakpoints are not per project but global.
I've a similar RFE, a bit broader: Bug 188551 - RFE: Slight enhancement of HTML editing (edit)
See also CR 7107992. The scenario there is a project was deleted but the line breakpoints for files in that project are still around.
Bug 210312 shows what can happen when you *don't* have per-project breakpoints.
*** Bug 210312 has been marked as a duplicate of this bug. ***
This is still broken after 2 years. I'd propose that since NB (a) supports multiple projects, and (b) as an ide debugging is a crucial part, (c) breakpoints are not recorded on a per-project basis, which causes (d) various problems listed below.... therefore this bug is a defect.
Please evaluate, looks like must be transfered to NB debugger
For java there is a notion of breakpoint groups and filtering per project and for opened projects only. This is implemented in general debugging infrastructure and only needs to be supported.
fixed in: http://hg.netbeans.org/cnd-main/rev/2756a226ed37 I've enabled breakpoint groups for cnd. Now there is a button in the breakpoints view where you can select how you want to group the breakpoints (you can group by project) and also specify that you do not need to see breakpoints from closed projects. Currently only line breakpoints "know" their project. Please try it when available in dev build and say if it solves the problem.
Integrated into 'main-golden', will be available in build *201211090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/2756a226ed37 User: Egor Ushakov <gorrus@netbeans.org> Log: fixed #175475 - Per project breakpoints
Per-project breakpoints should be covered by automatic tests.
*** Bug 222246 has been marked as a duplicate of this bug. ***