emacs-devel
[Top][All Lists]
Advanced

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

Re: How to run emacs under a debugger on macOS?


From: Alan Third
Subject: Re: How to run emacs under a debugger on macOS?
Date: Sat, 11 Jan 2020 19:11:00 +0000

On Sat, Jan 11, 2020 at 07:00:26PM +0000, Pankaj Jangid wrote:
> Alan Third <address@hidden> writes:
> 
> > On Sat, Jan 11, 2020 at 11:32:15AM +0000, Pankaj Jangid wrote:
> >> 1. How to make debug build?  2. How to launch emacs under a debugger
> >> on macos?  3. Any other instructions relevant for debugging.
> >
> > I usually do something like:
> >
> >     ./configure CFLAGS="-g -O0" make make install lldb
> >     nextstep/Emacs.app/Contents/MacOS/Emacs
> 
> Thanks.
> 
> BTW I launched directory from the ./src/emacs after building with "-g
> -O0".

Yes, that works fine too.

> One followup query: Does lldb also create similar dump that the gdb
> creates when there is a crash?

Yes. Most of the basic commands in gdb work in lldb too, but not all,
so if you’re being given gdb commands and they don’t work I suggest
you check https://lldb.llvm.org/use/map.html.
-- 
Alan Third



reply via email to

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