Debug Java Code called via JNI

蹲街弑〆低调 提交于 2020-01-07 06:40:07

问题


I have a piece of code where I am creating a Java VM via JNI and then invoking a method on a java .class file.

How do i debug the java code via an IDE say eclipse or Netbeans. My c++ project is setup in visual studio and the java project is setup using eclipse. Till now I was using logs to debug the java code.


回答1:


You need to use remote debugging see http://java.dzone.com/articles/how-debug-remote-java-applicat



来源:https://stackoverflow.com/questions/5864865/debug-java-code-called-via-jni

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!