Java jdb远程调试命令行工具 [英] Java jdb remote debugging command line tool
问题描述
任何人都有使用此功能的经验吗?
如果是这样,值得一试吗?
anyone have any experience using this? if so, is it worth while?
推荐答案
我昨天第一次使用jdb,我真的很高兴结果。你看,我在我的笔记本电脑上用Eclipse编程,然后部署到VM以确保整个shebang仍然有效。非常偶然,我将不得不处理一些独立执行的事情,作为命令行。这些东西有时候需要调试。
I just used jdb for the first time yesterday and am really pleased with the results. You see, I program in Eclipse on my laptop, then deploy to a VM to make sure the whole shebang still works. Very occasionaly, I'll have to work on something that gets executed standalone, as a commandline. These things sometimes need debugging.
这一直是个问题,因为我不想在VM上安装Eclipse的麻烦(它已经足够慢了) !),但我不知道在它完成运行之前让它连接到我的命令行运行类的简单方法。
This has always been a problem, because I don't want to go to the trouble of installing Eclipse on the VM (it's slow enough already!), yet I don't know of an easy way to get it to connect to my commandline-running class before it finishes running.
jdb救援!它起作用 - 小而实用,几乎到了裸露的地步......这迫使你比应用工具更多地应用你的思想(就像我说的这里)。
jdb to the rescue! It works a treat - small and functional, almost to the point where it is bare... this forces you to apply your mind more than you apply the tool (like I said here).
确保打印出参考文献( solaris , windows , java 1.5 - 我认为它们的内容完全一样,并且在第二个屏幕上打开并浏览了源代码。我希望你有第二个屏幕,或者你会很多选择。
Make sure to print out the reference (solaris, windows, java 1.5 - I think they're all about the same, really) and have your source code open and browsable on your second screen. I hope you have a second screen, or you'll be alt-tabbing a lot.
这篇关于Java jdb远程调试命令行工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!