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 46522 - Problem setting breakpoints in freeform project
Summary: Problem setting breakpoints in freeform project
Status: CLOSED INVALID
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 42682
  Show dependency tree
 
Reported: 2004-07-24 10:50 UTC by gugrim
Modified: 2006-03-24 09:57 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 gugrim 2004-07-24 10:50:33 UTC
I have three freeform projects; DOIStudio, DOI and
Effie. DOIStudio uses DOI and Effie. DOI uses Effie.

I can never set breakpoints in the current
project, nor in the JDK.

When debugging DOIStudio, I can set breakpoints in
DOI.

When debugging DOI, I can set breakpoints in Effie.

In all cases, the breakpoints are listed correctly
in the Breakpoints window. I can use "Go To
Source", so NetBeans has no problem locating the
source. (How NetBeans does that is beyond me since
there is AFAIK no way to specify, in project.xml,
where the source for dependent libraries can be
found.)

In other words, it LOOKS like the breakpoints are
set correctly, its just that the debugger never
stops on them.

This is the Ant task used to start the debugger:

    <target name="debug" depends="compile"
if="netbeans.home" description="Debug Project">
		<fail message="Property 'main.class' not set."
unless="main.class"/>
		<fail message="Property 'run.jvmargs' not set."
unless="run.jvmargs"/>
		<fail message="Property 'application.args' not
set." unless="application.args"/>
        <nbjpdastart name="${main.class}"
addressproperty="jpda.address" transport="dt_socket">
			<classpath>
				<path refid="run.classpath"/>
			</classpath>
		</nbjpdastart>
		<java classname="${main.class}" fork="true">
			<jvmarg value="-Xdebug"/>
			<jvmarg value="-Xnoagent"/>
			<jvmarg value="-Djava.compiler=none"/>
			<jvmarg
value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
			<jvmarg line="${run.jvmargs}"/>
			<classpath>
				<path refid="run.classpath"/>
			</classpath>
			<arg line="${application.args}"/>
		</java>
	</target>
Comment 1 gugrim 2004-07-28 07:18:28 UTC
This problem I have now found seem to be caused by an invalid sourcepath.
If you specify it explicitly the problem goes away. The source
directories for the project are specified in project.xml and hopefully
we will also be able to specify dependencies to libraries and other
projects. If freeform then maintains a property file where the
complete sourcepath is available we could use that property in a
<sourcepath> sub-element and this isn't an issue anymore.
Comment 2 Jesse Glick 2004-08-04 03:03:56 UTC
You can set package roots, classpath items, etc. to whatever you like,
incl. defining them based on property files shared with your build
script. Closing in lieu of any clearly stated request; original bug
was admitted to be caused by some sort of misconfiguration (not sure
what).
Comment 3 Marian Mirilovic 2005-07-12 10:07:52 UTC
closed