调试通过JNI调用的Java代码 [英] Debug Java Code called via JNI

查看:73
本文介绍了调试通过JNI调用的Java代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一段代码,通过JNI创建Java VM,然后在java .class文件上调用方法.

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.

我如何通过IDE(例如eclipse或Netbeans)调试Java代码. 我的c ++项目是在Visual Studio中设置的,而Java项目是使用eclipse设置的. 到目前为止,我一直在使用日志来调试Java代码.

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.

推荐答案

您需要使用远程调试,请参见

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

这篇关于调试通过JNI调用的Java代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆