Debugging Emacs binary

from blog lmno.lol @alvaro, | ↗ original
From How do I debug an emacs crash? (Emacs Stack Exchange), disable optimizations when configuring and build: CFLAGS="-O0 -g3" ./configure ... make And good 'ol gdb (lldb works too): gdb ../nextstep/Emacs.app/Contents/MacOS/Emacs Reference etc/DEBUG: Debugging GNU Emacs.