简体   繁体   English

如何在MAC上为Emacs安装Java调试器?

[英]How to install Java debugger for Emacs on MAC?

UC berkeley offers a free java debugger called gjdb which is a modified version of gdb. 加州大学伯克利分校提供了一个免费的Java调试器,称为gjdb ,它是gdb的修改版本。 but I have trouble about how to install it. 但我对如何安装有麻烦。 Specifically, in the README file it says: 具体来说,在README文件中显示:


INSTALLATION 安装

To configure, use 要配置,请使用

DIR/configure OPTIONS

in the directory in which you want to build, where DIR designates the directory in which you have unpacked the source (can be .). 在您要构建的目录中,DIR表示您在其中解压缩源的目录(可以是。)。 Use 采用

DIR/configure --help

to see the options. 查看选项。

Next, you can simply type 接下来,您只需输入

make

to build, 建造

make install

to install, and 安装,以及

make install-doc

to compile and install the documentation file gjdb.pdf. 编译并安装文档文件gjdb.pdf。

To use gjdb from Emacs, arrange to load it in your initialization (.emacs) file with the command 要使用Emacs中的gjdb,请安排使用以下命令将其加载到初始化(.emacs)文件中

(load "DIR/gjdb")

where DIR is the directory in which 'make install' put gjdb.el (see the output of configure --help), or just DIR是“ make install”放置gjdb.el的目录(请参阅configure --help的输出),或者

(load "gjdb")

if you have put DIR on Emacs's load path. 如果已将DIR放在Emacs的加载路径上。


I just have no Idea about the installation process. 我对安装过程一无所知。 If any of you have a better choice for a JAVA debugger in Emacs, please let me know! 如果您有更好的选择在Emacs中使用JAVA调试器,请告诉我!

thanks for the help of @chris, I've come up with the right way to configure. 感谢@chris的帮助,我提出了正确的配置方法。 just use 只是使用

./configure apphome==/usr

everything goes as expected!! 一切都按预期进行!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM