cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Best way to debug jlink?

ptc-4810159
1-Visitor

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?

2 REPLIES 2
jkent
12-Amethyst
(To:ptc-4810159)

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.

As stated in my original post, I have no clue what NetBeans is. It might be the answer, but I need more info. Where should I go to download it? Or do I already have it and just have to change settings? I am working on Windows, does that matter? What is config.pro? Where does it go? How should I set its information?

Announcements


Top Tags