[英]debugger for emacs to step through java source code
GNU Emacs 25.1.1
Fedora release 24 (Twenty Four)
Gradle 2.14.1
I have been doing a lot of java applications lately and want to know what is the best debugger for stepping through java applications. 我最近做了很多java应用程序,想知道什么是最好的调试程序来逐步执行java应用程序。
I would like to debug my apps from inside emacs environment by setting breakpoints and inspecting variables, etc. 我想通过设置断点和检查变量等来从emacs环境中调试我的应用程序。
I am using gradle as my build tool for compiling the application. 我使用gradle作为编译应用程序的构建工具。
I have no idea how to set this up, if someone could explain how to do this. 我不知道如何设置它,如果有人可以解释如何做到这一点。
Many thanks for any suggestions. 非常感谢任何建议。
You could use jdb
(it comes with GUD and you should have nothing to install). 你可以使用
jdb
(它附带GUD ,你应该没有任何东西可以安装)。
Just enter Mx jdb ENT
只需输入
Mx jdb ENT
and enter the command you would like to launch jdb with (For example jdb HelloWorld
) and run/debug like in a regular jdb
session. 并输入您要启动jdb的命令(例如
jdb HelloWorld
)并在常规jdb
会话中运行/ debug。
I'm using JDEE (Java Development Environment for Emacs) to develop Java in Emacs, you might want to try with it. 我正在使用JDEE (用于Emacs的Java开发环境)在Emacs中开发Java,您可能想尝试使用它。 It is an add on sotware package for Emacs that assists in the development of software in the Java Programming Language, and provides many Emacs commands that help with programming of Java, including debugging .
它是Emacs的附加软件包,它有助于Java编程语言中的软件开发,并提供许多有助于Java编程的Emacs命令,包括调试 。
The JDE provides two options for debugging Java applications.
JDE提供了两个用于调试Java应用程序的选项。
An Emacs interface to
jdb
, the command-line debugger that comes with the JDK.jdb
的Emacs接口,jdb
是JDK附带的命令行调试器。 See Debugging with jdb for more information.有关更多信息,请参阅使用jdb进行调试 。
JDEbug, a Java debugger developed specifically for use with the JDE.
JDEbug,一个专门为JDE使用而开发的Java调试器。 See JDEbug User's Guide for more information.
有关更多信息,请参阅JDEbug用户指南 。
JDEbug provides more debugging features.
JDEbug提供了更多调试功能。
Screenshots of JDEbug JDEbug截图
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.