简体   繁体   English

调试器,用于emacs逐步执行java源代码

[英]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.

相关问题 使用 Intellij 的调试器时如何仅单步执行“我的”Java 源代码? - How to only step through 'my' Java source code when using Intellij's debugger? 无法在调试器(Android)中单步执行代码 - Cannot step through code in debugger (Android) 为什么我不能在NetBeans Debugger中插入/讨论Java源代码? - Why can't I step into/over Java source code in NetBeans Debugger? 如何在 Visual Studio 或 CLion 调试器中单步执行 ispc 源文件? - How to step through ispc source files in Visual Studio or CLion debugger? 是否可以使用JavaScript debugger关键字进入源代码并从源代码中退出 - Is it possible to step in source code and step out from source code with JavaScript debugger keyword 调试器无法匹配库中的源代码或步骤代码 - Debugger can't match source or step code in library 在 IntelliJ IDEA 中单步执行 JDK 源代码 - Step through JDK source code in IntelliJ IDEA Eclipse CDT调试器仅逐步执行反汇编代码,而不是我自己的 - Eclipse cdt debugger only step through dessembly code and not my own 如何在Google Chrome javascript调试器中单步执行代码 - How to step through code in Google chrome javascript debugger Haskell 有分步调试器吗? - Is there a step-through debugger for Haskell?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM