获取 BlackBerry 模拟器以打印到命令行/控制台
我希望将 BlackBerry 模拟器打印到控制台,以便无需 IDE 即可进行调试。我使用 bb-ant-tools 在 Linux 上进行所有开发,并让模拟器在 Windows 上运行(在单独的计算机上)。我在windows上没有eclipse或jde,只有模拟器。
--edit 02/28/10
经过大量搜索后,我似乎需要将模拟器连接到 jdb,为此,我需要找到默认的 JDWP 端口,或者如何在没有 JDE 的 JDWP 应用程序的情况下更改它。我正在查看可能的端口 8000,我希望它不是随机分配的。
--edit 03/02/10
更正,需要 JDWP 应用程序,因为它是您通过 jdb -connect com.sun.jdi.SocketAttach:hostname=host,port=8000
将 jdb 连接到的应用程序但输出被放置在 JDWP 的输出选项卡中,这使得它不太可能打印到控制台并在没有 JDE 的情况下完成。但我非常希望被证明是错误的。
I would like to have the BlackBerry simulator print to console so that I can debug with out an IDE. I do all my development from Linux with bb-ant-tools and have the emulator running on windows (on a separate computer). I don't have eclipse or the jde on windows, just the emulator.
--edit 02/28/10
After much searching it appears I need to connect to the simulator to jdb and to do that I need to find the default JDWP port or how to change it with out the JDE's JDWP application. I am looking at possibly port 8000, I hope it isn't randomly assigned.
--edit 03/02/10
Correction, the JDWP application is required as it is what you connect the jdb to by jdb -connect com.sun.jdi.SocketAttach:hostname=host,port=8000
but output is placed in output tab of JDWP making it very unlikely that it can print to a console and be done without the JDE. I would very much like to be proven wrong though.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有几件事,不确定它们会很有帮助。
jdb 是一个命令行工具,因此您应该能够通过这种方式获取控制台。
对于 Linux,您可以使用 Barry 工具为您提供 jdwp 作为 bjdwp 命令,然后您应该能够 使用 jdb
此外,您还可以使用 Wine 让模拟器在 Linux 上运行。我能够运行 Barry 工具和 我的 Mac 上的模拟器。
我讨厌写这样一个简短的、不够详细的答案,但希望这能帮助其他有时间提供更多细节的人。
PS:抱歉没有http://,但看来我是个新手,我不能在我的答案上放置多个链接。
A couple of things, not sure they will be very helpful.
jdb IS a command line tool, so you should be able to get console out that way.
For Linux, you can use the Barry tools that give you the jdwp as bjdwp command, then you should be able to use jdb
Also, you can get the Simulator to work on Linux by using Wine. I am able to run both the Barry tools and the Simulator on my mac.
I hate writting up such a short not detailed enough answer, but hopefully this will help someone else who will have time to provide more details.
PS: Sorry about no http:// but it seems that I am such a newbie I can't put more than one link on my answer.