> From: Itai Berli <itai.berli@gmail.com>
> Date: Sat, 12 Aug 2017 12:53:24 +0300
> Cc: Emacs developers <emacs-devel@gnu.org>
>
> If I make a change to the code, for experimentation purposes, how do I compile it so I can see my change in
> action and debug it? Should I run
>
> ./autogen.sh
> ./autogen.sh git
> CFLAGS='-O0 -g3' ./configure
> make
> make install
>
> or can I simply compile the file that I changed with the compiler (GCC or Clang)?
Just "make" should do. Since you are debugging the binary in the
source tree, not the installed binary, "make install" shouldn't be
necessary, AFAIU (but I don't know enough about the intricacies of
macOS installations).