Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 23
Registered: ‎11-24-2008
My Device: Not Specified

debug file jde blackberry+netbean

Hello,

When I launch debugger from netbeans environment, the simulator of JDE (RIM platform for blackberry) is launched.
This simulator asks me about an old .debug file.(see the picture) For execute simulator I click on (don't asks me again) but the program don't stop to the breakpoint??

I don't want appear this dialog each time when i launch the debugger so what can I do to resolve this issue?

debug file

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: debug file jde blackberry+netbean

This means that the .debug file in the BlackBerry Simulator directory is either missing or is not the correct version for your application.  These files must match in order to use debugging features.  Please verify that the latest .debug files for your application have been copied into the BlackBerry Simulator directory.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 23
Registered: ‎11-24-2008
My Device: Not Specified

Re: debug file jde blackberry+netbean

Hello,

Thank you for your response but i didn't resolve the mistake. Do you have an issue to resolve it? did I need to change the file build.xml? I don't see how could I do it?

thank you for your help Smiley Happy

 

 

<?xml version="1.0" encoding="UTF-8"?>
<project name="" default="jar" basedir=".">
   
    <description>Builds, tests, and runs the project .</description>
    <import file="nbproject/build-impl.xml"/>
    <property name="rim.blackberry.home" location="C:/Program Files/Research In Motion/BlackBerry JDE 4.6.0"/>
    <property name="rim.blackberry.emulator" value="9000"/>
    <property name="rim.blackberry.jdwp.port" value="8000"/>   
   
   
    <target name="post-jar">
        <exec os="Windows NT Windows 95 Windows 98 Windows 2000 Windows XP"
        dir="${dist.dir}"
        executable="${rim.blackberry.home}/bin/rapc.exe"
        failonerror="true" resolveExecutable="true">
            <arg value="import=${rim.blackberry.home}/lib/net_rim_api.jar"/>
            <arg value="codename=${name}"/>
            <arg value="${dist.jad}"/>
            <arg value="${dist.jar}"/>
        </exec>
        <copy file="${name}.alx" todir="${dist.dir}"/>
    </target>
  
   
    <target name="run" depends="init,jar">
        <copy todir="${rim.blackberry.home}/simulator" verbose="true">
            <fileset dir="${dist.dir}">
                <include name="**/${name}.*"/>
            </fileset>
        </copy>
        <exec os="Windows NT Windows 95 Windows 98 Windows 2000 Windows XP" dir="${rim.blackberry.home}/simulator" executable="${rim.blackberry.home}/simulator/${rim.blackberry.emulator}.bat" failonerror="true" resolveExecutable="true"/>
    </target>
   
   
   
    <target name="debug" depends="init,jar">
       
        <copy todir="${rim.blackberry.home}/simulator" verbose="true">
            <fileset dir="${dist.dir}">
                <include name="**/${name}.*"/>
            </fileset>
        </copy>
       
        <delete file="${preprocessed.dir}/.timestamp"/>
       
        <parallel>
            <property name="jpda.port" value="8000"/>
            <java jar="${rim.blackberry.home}/bin/JDWP.jar" fork="true" dir="${rim.blackberry.home}/bin"> <!--${rim.blackberry.home}/bin !-->
                <jvmarg value="-Xmx128M"/>
            </java>
            <sequential>
                <sleep seconds="5"/>
                <antcall target="nbdebug"/>
            </sequential>
        </parallel>
       
    </target>
   
   
   
    <target name="post-clean">
        <echo>Post clean</echo>
        <delete>
            <fileset dir="${rim.blackberry.home}/simulator">
                <include name="**/${name}.*"/>
            </fileset>
        </delete>
    </target>
  
   
</project>
 

Highlighted
New Developer
Posts: 1
Registered: ‎12-13-2008
My Device: Not Specified

Re: debug file jde blackberry+netbean

There is actually a NetBeans plugin to help you create BlackBerry apps in Netbeans.

You can register JDE as java me emulator in Tools->Java Platform. You did't need to touch build.xml any more with this plugin.

You can find it here:

http://www.teesoft.info/content/view/36/36/#BlackBerryPlugin