Re: Debugging a Java JNI project
Re: Debugging a Java JNI project
- Subject: Re: Debugging a Java JNI project
- From: Dmitry Markman <email@hidden>
- Date: Tue, 26 Sep 2006 22:46:35 -0400
it worked year ago with xcode 2.1
try the following
1. you have to have two XCode 2.1 projects 1 for java target and 1
for jnilib
for java target executable setup java debugger
for jnilib target executable - GDB debugger but UNCHECK Start
executable after starting debugger
2. start java executable with debugger (set breakpoint at the first
line of the main
3. open console for jnilib project and start native debugger
debugger should stop and you'll see in the console:
.....
Program loaded.
(gdb)
4. find the pid of your java process with
ps -auxww | grep java
5. from native project console (gdb console) write
run
6. click on the pause button of the native debugger window
7. from native project console (gdb console) write
kill
8. from native project console (gdb console) write
attach <pid>
where pid is a number you found earlier
thank you very much to guys from Java and XCode team that helped me
to figure out how to do that
please, let me know how it was
On Sep 26, 2006, at 9:48 PM, Paul Archibald wrote:
I asked this once before and got no response, so I am trying again.
I have an Xcode project that builds a Java app. The app makes use
of a JNI lib built with gcc.
I would like to be able to step into the JNI code (I am sure that
is a common hope.) Does anyone know of a combination of build
settings for the Xcode project and the gcc makefile that would
allow debugging the JNI?
I do have the JNI code included in a parallel CodeWarrior project
which allows a lot of debugging, but I have run into a situation
which is confounding me. Is this the only way to debug the JNI?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Dmitry Markman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden