From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Help getting started debugging Emacs on macOS Sierra Date: Sat, 12 Aug 2017 13:20:18 +0300 Message-ID: <83378xjdel.fsf@gnu.org> References: <87556904-541c-6ef5-5a2b-9b7199ffb603@cs.ucla.edu> <7b152bb1-5768-633c-8b7a-172cc6227a26@cs.ucla.edu> <83valuqvmw.fsf@gnu.org> <83poc2qjc3.fsf@gnu.org> <83o9rmqh0j.fsf@gnu.org> <83lgmqqe83.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1502533242 5001 195.159.176.226 (12 Aug 2017 10:20:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 12 Aug 2017 10:20:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: Itai Berli Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 12 12:20:36 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgTWz-0000mH-Lo for ged-emacs-devel@m.gmane.org; Sat, 12 Aug 2017 12:20:33 +0200 Original-Received: from localhost ([::1]:41983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgTX6-0001qj-1m for ged-emacs-devel@m.gmane.org; Sat, 12 Aug 2017 06:20:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgTWw-0001qG-Sh for emacs-devel@gnu.org; Sat, 12 Aug 2017 06:20:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgTWt-0003LP-Mb for emacs-devel@gnu.org; Sat, 12 Aug 2017 06:20:30 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgTWt-0003LJ-Iz; Sat, 12 Aug 2017 06:20:27 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1962 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dgTWs-00012q-Ve; Sat, 12 Aug 2017 06:20:27 -0400 In-reply-to: (message from Itai Berli on Sat, 12 Aug 2017 12:53:24 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217467 Archived-At: > From: Itai Berli > Date: Sat, 12 Aug 2017 12:53:24 +0300 > Cc: Emacs developers > > 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).