Debug dll from java java-> jni.dll & # 8594; app.dll & # 8594; app.dll

how can I debug a dll not loaded by a java application.

The scenario is this: my java application loads jni.dll, which uses a different dll, and that the dll uses a different dll.

java ↔ jni.dll ↔ dll ↔ dll

I have source code for all modules

I use visual studio express when debugging jni.dll, but what should I do to be able to debug other dlls?

+5
source share
5 answers

but it’s the same.

I am doing the same, so let me explain my working set.

eclipse 3.1 Visual ++ 2003 7.1.3088 (... ;)) Windows XP. some_jni.dll some.dll java jni. some.dll internaly other.dll. some.dll other.dll visual studio.

jni. VS ( ) "Debuggen" () → "Prozesse" () javaw.exe

javaw.exe "Anfügen" ().

, ++, , VS. VS . DLL , , VS . : dll, !!! ++.

, .

, .

+8

java-. ++, visual studio .

, , . java .

dll , , .

EDIT: Dll, , , visual studio !

+1

, , Linux Solaris. " " DLL "_asm int 3;"

, Windows , .

, , .

.

0
source

Alternatively try IKVM. http://www.ikvm.net/

0
source

One rough way to do this is to create an infinite loop in the dll that you want to debug as:

int x = 1;
while(x);

Once a Java application enters this loop, it joins this process through the debugger and sets the value xto 0to break the loop, and now you can go through the debugger.

0
source

All Articles