的NativeProcess API的Java调试? [英] NativeProcess API Java Debugging?

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

问题描述

你是什么方式,当通过Flex端调用nativeProcess.standardInput.write方法Java端调试?我知道这是可能的,但不知道怎么办?

What is your way to debug Java side when nativeProcess.standardInput.write method is invoked by Flex side? I know that it is possible but don't know how?

推荐答案

要能够到Eclipse调试器附加到你需要启动这一进程具有以下Java选项运行中的Java程序...

To be able to attach your Eclipse debugger to a running Java process you need to start that process with the following Java options…

-Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n

一旦你做到了这一点,并重新启动服务器时,您可以使用Eclipse来连接到正在运行的进程。在Eclipse进入Debug Manager并创建一个新的远程Java应用程序配置为要连接的过程。设定的端口号8001,相同的选项。您还需要输入主机名运行Java程序的机器。这是pretty的多少呢?

Once you have done this and have restarted the server, you can use your Eclipse to attach to the running process. From Eclipse go to the Debug manager and create a new Remote Java Application configuration for the process you want to connect to. Set the port number to 8001, the same as that of the options. You will also need to enter the hostname for the machine running the Java process. That is pretty much it…

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

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