How to debug Java application from Sublime Text editor

爷,独闯天下 提交于 2019-12-08 19:30:07

问题


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).

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.

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.


回答1:


You could look for a standalone Java Debugger like JDebugTool.

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.

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.



来源:https://stackoverflow.com/questions/10227530/how-to-debug-java-application-from-sublime-text-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!