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.

Bug 215238 - debugger source roots not automatically added when project is open
Summary: debugger source roots not automatically added when project is open
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.2
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-06 21:39 UTC by emiddio
Modified: 2012-11-25 03:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description emiddio 2012-07-06 21:39:54 UTC
debugger sources roots used to include open projects, now it seems it does not; i have a bunch of apache cxf 2.2.11 maven projects open and i want those sources included while debugging a project that makes use of the cxf2.2.11 jar file.

i dont want to have to add 100 or so source roots manually to the debugging session.

Product Version: NetBeans IDE 7.2 RC1 (Build 201206272359)
Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\a-gbello\AppData\Roaming\NetBeans\7.2rc1
Cache directory: C:\Users\a-gbello\AppData\Local\NetBeans\Cache\7.2rc1
Comment 1 emiddio 2012-07-06 21:51:18 UTC
i notice the apache cxf sources appear under a tab 'remote-attach' but not associated with non 'remote-attach' tab. using Spring I can debug an integration test that makes use of the apache cxf sources but cannot get those sources automatically added to the debugging session even though the projects are open.

either all open projects should be part of the debugger sources or there should be a way to added open projects sources to a debugger session.
Comment 2 Martin Entlicher 2012-11-23 17:54:14 UTC
Does your project, which uses the 100 source roots, declare the correct dependency on them?
I've found one problem in additional class paths, which is fixed by
changeset:   240842:f8e9cf87bd13
http://hg.netbeans.org/core-main/rev/f8e9cf87bd13

The behavior may vary when you use a remote attach (all opened projects are taken into account) and when you run debug on a particular project (just that and it's dependent projects are taken into account). However, for instance, if you have a breakpoint in some opened project, which is not declared as dependent from the debugged one, the breakpoint should still work.
Comment 3 emiddio 2012-11-23 19:22:19 UTC
almost never -99.9% of time 'nb debug' remote project -- always use remote attach.

i usually dont declare project dependencys; i download source for jars i have to use and they usually end up as free-form ant project, or maven project, or sometime a nb java project, and sometime just a directory of sources that gets added with the debugger sources roots pane.

hope this helps.

-Gary
Comment 4 Quality Engineering 2012-11-25 03:09:56 UTC
Integrated into 'main-golden', will be available in build *201211250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f8e9cf87bd13
User: mentlicher@netbeans.org
Log: #215238: Fix a problem in the addition of additional class paths from opened projects.