emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help getting started debugging Emacs on macOS Sierra


From: Itai Berli
Subject: Re: Help getting started debugging Emacs on macOS Sierra
Date: Fri, 11 Aug 2017 08:06:50 +0300

Thanks, Paul. Do you use macOS? I read that Macs don't use gdb natively, but instead an alternative called LLVM. At any rate, gdb is not installed on my system. I can download and install it, but I'm a little hesitant, as I'm afraid it might clash with LLVM.

On Fri, Aug 11, 2017 at 6:04 AM, Paul Eggert <address@hidden> wrote:
Itai Berli wrote:
I'll appreciate it if someone can walk me through the steps needed to get
up and running....

All the scripts finished successfully. In the end I was able to start the
Emacs GUI from the command line by running

open nextstep/Emacs.app

You've gotten up and running, so it sounds like all you need to do is to learn how to debug.

I normally use gdb under Emacs to debug Emacs. To do that, I run Emacs in the source directory, type the command "M-x gud-gdb RET bootstrap-emacs RET" to get GDB running on a subsidiary instance of Emacs, type the GDB command "b Fexpand_file_name" to plant a breakpoint in (say) Fexpand_file_name, and then type the GDB command "r" to run the Emacs being debugged.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]