User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 392,008 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,222 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 1159 | Replies: 7
Reply
Join Date: Nov 2004
Posts: 189
Reputation: George2 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
George2 George2 is offline Offline
Junior Poster

debugging JNI application

  #1  
Aug 10th, 2007
Hello everyone,


I am wondering if I want to debug JNI application (upper layer Java and lower layer C), are there any tools to debug through Java code to C code and return back from C code to Java code.

I am using Eclipse. But I do not find such functions in Eclipse (maybe I miss some plug-ins?). Currently, I can only debug Java code.


thanks in advance,
George
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2005
Location: Wellington, New Zealand
Posts: 182
Reputation: alpha_foobar is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 3
alpha_foobar's Avatar
alpha_foobar alpha_foobar is offline Offline
Junior Poster

Re: debugging JNI application

  #2  
Aug 13th, 2007
Have you tried debugging the native object in a C ide first? The interface from Java to C tends to be pretty simple... If you are happy with what is going on in Java, then it seems like the sensible step?
Reply With Quote  
Join Date: Nov 2004
Posts: 189
Reputation: George2 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
George2 George2 is offline Offline
Junior Poster

Re: debugging JNI application

  #3  
Aug 13th, 2007
Thanks alpha_foobar,


Originally Posted by alpha_foobar View Post
Have you tried debugging the native object in a C ide first? The interface from Java to C tends to be pretty simple... If you are happy with what is going on in Java, then it seems like the sensible step?

You mean there is no integrated way to debug Java part and C part -- debugging goes through Java code into C code and vice versa?


regards,
George
Reply With Quote  
Join Date: May 2005
Location: Wellington, New Zealand
Posts: 182
Reputation: alpha_foobar is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 3
alpha_foobar's Avatar
alpha_foobar alpha_foobar is offline Offline
Junior Poster

Re: debugging JNI application

  #4  
Aug 13th, 2007
I'm not aware of any. But it isn't an area I have spent a lot of time in.

I'd suspect that you'd need the dll to be running in a C IDE in debug mode for a seamless debug thread to work. And I don't really think that would be possible.

Are you having a problem with something - or is this more of a theoretic question? I'm just thinking that if debugging the C module separately isn't a feasible solution - perhaps there is another way more specific to your problem?
Reply With Quote  
Join Date: Nov 2004
Posts: 189
Reputation: George2 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
George2 George2 is offline Offline
Junior Poster

Re: debugging JNI application

  #5  
Aug 16th, 2007
Thanks alpha_foobar,


Originally Posted by alpha_foobar View Post
I'm not aware of any. But it isn't an area I have spent a lot of time in.

I'd suspect that you'd need the dll to be running in a C IDE in debug mode for a seamless debug thread to work. And I don't really think that would be possible.

Are you having a problem with something - or is this more of a theoretic question? I'm just thinking that if debugging the C module separately isn't a feasible solution - perhaps there is another way more specific to your problem?


It is my interest to learn and try new ways and new technology. I am learning JNI and I want to study how to debug and solve issues in JNI code.

How to debug the C module separately? I need to know the input parameters from Java code, right?


regards,
George
Reply With Quote  
Join Date: Sep 2007
Posts: 2
Reputation: vvl is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vvl vvl is offline Offline
Newbie Poster

Re: debugging JNI application

  #6  
Sep 18th, 2007
Hi George2,
Let's me introduce Eclipse* based tool for debugging Java*/JNI environment that uses CDT and JDT perspectives makes developer works comfortable for Eclipse* users and moving out two debugger scenario to the history.
Please find time to visit http://softwarecommunity.intel.com/a...s/eng/1435.htm and try it. Let us to know if it helps to you or not, and what changes should be done to meet your expectations and requirements.

--
Vasily v. Levchenko
Senior Software Engineer
Intel(R) Corporation
Reply With Quote  
Join Date: May 2005
Location: Wellington, New Zealand
Posts: 182
Reputation: alpha_foobar is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 3
alpha_foobar's Avatar
alpha_foobar alpha_foobar is offline Offline
Junior Poster

Re: debugging JNI application

  #7  
Sep 18th, 2007
Cheers vvl,
I am looking forward to getting an opportunity to use that!
Reply With Quote  
Join Date: Sep 2007
Posts: 2
Reputation: vvl is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vvl vvl is offline Offline
Newbie Poster

Re: debugging JNI application

  #8  
Sep 19th, 2007
Thank you, alphafoobar.
That would be nice if you share your feedback on our site, because whatif is some way to share Intel engineers' ideas with others. And actually number of feedbacks or recommendation from community will influence on realization of those ideas.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Java Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 10:22 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC