Skip navigation
301 Views 2 Replies Latest reply: Nov 16, 2012 1:48 PM by ptc-4810159 RSS
ptc-4810159 Copper 2 posts since
Oct 31, 2012
Currently Being Moderated

Nov 16, 2012 1:34 PM

Best way to debug jlink?

New to Creo, new to JLink.  New to Java too, but very familiar with .NET programming, so reading and writing java code seems natural.

 

With help from PTC support, I was able to get the synchronous sample jlink\jlink_appls\jlinkexamples working.  (PTC support gave me a batch file that sets all the environment variables as needed, compiles the java and launches Creo).

 

I installed Oracle JDeveloper 11g Release 2 and have been able to view and modify the code (with all the niceties of intellisense and error checking).  I still compile and launch my changes with the batch file, and my changes are working nicely.

 

Now I would really like to run this as a debug session, but I am not sure what the best approach is. I did go back into the batch file and add the flags for debug information to be included.  Most of the existing discussions I can find talk about NetBeans and Wildfire (here I am clueless).  Oracle Developer wants me to pick a Default Run Target, but does not want me to pick parametric.exe.

 

I figure I need to launch Creo first, then attach to it in order to debug (this is how I am used to debugging .Net extensions to other applications).  I do have the option of attaching to "CPU Profilee" or "Memory Profilee" but not sure how or if this applies in this case.


Anyone willing to help me sort out the pieces I am missing?

  • jkent Bronze 43 posts since
    Jun 30, 2006
    Currently Being Moderated
    Nov 16, 2012 1:42 PM (in response to ptc-4810159)
    Re: Best way to debug jlink?

    I use Netbeans as my IDE. To attach a debugger I set this config.pro option,

    jlink_java_command C:\Program Files\Java\jre6_24\bin\java.exe -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

     

    I then start Creo and attach the debugger.

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 3 points
  • Helpful Answers - 1 points