调试JNI code在2003年的VisualStudio [英] Debugging the JNI code in VisualStudio 2003

查看:119
本文介绍了调试JNI code在2003年的VisualStudio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何调试在2003年的VisualStudio的JNI code,而不使用eclipse?

How to debug the JNI code in VisualStudio 2003 without using eclipse?

推荐答案

启动应用程序,让您的应用程序等待用户操作(对话框或东西)。打开VS和去(德国)Debuggen(调试) - >Prozesse(进程)他们你会看到javaw.exe的

Start your application and let your application wait for a user action (dialog or something). Open VS and go to (in German) "Debuggen" (Debugging) -> "Prozesse" (Processes) Their you will see the javaw.exe

选择的javaw.exe和和preSSAnfügen(连接)

Select the javaw.exe and and press "Anfügen" (Attach)

让您的Java应用程序运行。

Let your java application run.

当我remeber,在C ++中的code页面wher设置断点有可能成为与开放当断点被击中automaticaly VS会无法打开网页。当DLL被加载并执行,你把断点code线,在VS调试器将停止在该位置。注意:这只会发生,当您编译的DLL您想在调试选项调试!否则调试器将无法在C ++断点处停止。

When i remeber, the code page in c++ wher the breakpoint is placed has to be open in VS. VS will not open the page when the breakpoint is hit automaticaly. When the dll is loaded and the code line where you put a breakpoint is executed, the debugger in VS will stop at this position. Notice: this will only happen, when you compile the dll you want to debug in with debug options!!! otherwise the debugger will not stop at the C++ breakpoint.

我这样做是半年前,但这应该是正确的步骤。

I did this half a year ago, but this should be the right steps.

它希望你得到它。

这篇关于调试JNI code在2003年的VisualStudio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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