How to Debug Java -JNI using GDB on linux ?

前端 未结 3 1105

Can anyone guide on how to debug a JNI code on Linux using GDB debugger(if possible please suggest other options).

    -My JNI project when running on Linux          


        
3条回答
  •  时光说笑
    2020-12-14 03:42

    Link by tm.sauron is right But would be less convenient when we have many parameters to pass to java command like my project has about several line of param to pass. So in that case we can use IDE to start application and breaking it to point when we want to debug in native library. Ofcourse native library need to be created in debug mode.

提交回复
热议问题