如何从Sublime Text编辑器调试Java应用程序 [英] How to debug Java application from Sublime Text editor

查看:1091
本文介绍了如何从Sublime Text编辑器调试Java应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时我正在为相当庞大的Java应用程序做简单的修复,我不想为这个任务打开Eclipse。 Eclipse开始很长时间,因为项目是由Maven构建的大量子项目构建的,所以在Eclipse可用之前需要很长时间(至少在Java开发人员不耐烦的时候)。

Sometimes I am doing simple fixes for rather huge Java application and I don't want to open Eclipse for this task. Eclipse starts long and since the project is build out of large number of subprojects, which are build anyway by Maven, it takes ages before Eclipse is usable (at least ages in impatient Java developer scale).

几乎所有我需要的东西都可以在Sublime Text编辑器中完成,但是Eclipse发光的地方是调试器。我的工作流程是:进行修复,然后使用调试器测试它运行的应用程序(在服务器上),检查一切是否正常。

Almost everything I need can be done in Sublime Text editor, however one place where Eclipse shines is debugger. My workflow is: make a fix, then test it running application (on server) using debugger, to check if everything is ok.

那么是否有任何Sublime插件,或者其他非IDE解决方案,可轻松调试Java应用程序。

So is there any Sublime plugin, or other non-IDE solution for easy debugging of Java application.

注意:我见过这篇文章 - 它很老了,也许有更好的东西。

Note: I have seen this post - its pretty old, maybe there is something better.

推荐答案

您可以寻找一个独立的Java调试器,如 JDebugTool

You could look for a standalone Java Debugger like JDebugTool.

或者你可以简单地创建一个额外的Eclipse工作区,只需要远程调试你的应用程序所需的最小数量(只有一个链接了所有源jar的项目)。
这个工作空间的启动速度比完全快。

Or you could simply create an additional Eclipse workspace with only the bare minimal you need for remote debugging your application (just one project with all the source jars linked in). This workspace will start considerably faster than the full blown.

我从来没有使用过Java的独立调试器,我个人倾向于保留工具的数量我必须尽可能低地学习,Eclipse的调试器非常好。

I have never worked with a standalone debugger for Java and personally I tend to keep the number of tools I have to learn as low as possible and Eclipse's debugger is pretty good.

这篇关于如何从Sublime Text编辑器调试Java应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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