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.
When the user tried to start debugging of CDC projects (using Debug menu item), debugger is not attached. When the emulator stopped the log contains following error: C:\Users\Alex\Documents\NetBeansProjects\CdcApplication1\nbproject\build-impl. xml:1157: Failed to parse "${debug.delay}" BUILD FAILED (total time: 22 seconds). The problem is reside in the corresponding Ant task: <target name="-cdc-hi-debug" if="cdc-hi-platform.trigger"> <taskdef name="freePortRetriever" classname="org.netbeans.modules.j2me.cdc.project.savaje.FreePortRetriever" classpath="${libs.savaje-ant-utils.classpath}"/> <freePortRetriever debuggerPortProperty="active.debug.port"/> <parallel> <exec executable="${platform.home}/bin/emulator"> <arg value="-cp"/> <arg value="${basedir}/${dist.dir}/${dist.jar}"/> <arg value="-Xdevice:${platform.device}"/> <arg value="-Xmain:${main.class}"/> <arg value="-Xrunjdwp:transport=dt_socket,address=${active.debug.port},server=y,suspend=y"/> <arg value="-Xdebug"/> </exec> <property name="debug.delay" value="5000"/> <nb-mobility-debug address="${active.debug.port}" name="${app.codename}" delay="${debug.delay}" timeout="${debug.timeout}" period="2000"/> </parallel> </target> Following lines are executed in parallel: <property name="debug.delay" value="5000"/> <nb-mobility-debug address="${active.debug.port}" name="${app.codename}" delay="${debug.delay}" timeout="${debug.timeout}" period="2000"/> This is incorrect. The solution is to place these two lines inside <sequential>...</sequential> tags.
Thank you Alexander. fixed in jet-main http://hg.netbeans.org/jet-main/rev/28f2f7b57286
The change looks OK for me. However, could you revert the value of debug.delay back from 5000 to 500. 5 secs is too long timeout for attaching the debugger.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/28f2f7b57286 User: Anton Chechel <manowar@netbeans.org> Log: #201407: CDC debugging issue
debug.delay reverted http://hg.netbeans.org/jet-main/rev/b5065096e086
Was already verified on NB 7.1