From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.devel Subject: How to run emacs under a debugger on macOS? Date: Sat, 11 Jan 2020 11:32:15 +0000 Organization: J4D Network Message-ID: <0100016f94604822-8343ce50-8fdf-4b92-9e0b-70d45cda9dc2-000000@email.amazonses.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="58794"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.60 (darwin) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 11 12:33:53 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iqF0n-000155-0M for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Jan 2020 12:33:01 +0100 Original-Received: from localhost ([::1]:56766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqF0l-0006CJ-T7 for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Jan 2020 06:32:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41461) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <0100016f94604822-8343ce50-8fdf-4b92-9e0b-70d45cda9dc2-000000@amazonses.com>) id 1iqF07-0005Qx-LI for emacs-devel@gnu.org; Sat, 11 Jan 2020 06:32:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <0100016f94604822-8343ce50-8fdf-4b92-9e0b-70d45cda9dc2-000000@amazonses.com>) id 1iqF06-0005sC-KN for emacs-devel@gnu.org; Sat, 11 Jan 2020 06:32:19 -0500 Original-Received: from a8-79.smtp-out.amazonses.com ([54.240.8.79]:53064) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <0100016f94604822-8343ce50-8fdf-4b92-9e0b-70d45cda9dc2-000000@amazonses.com>) id 1iqF04-0005p5-Qq for emacs-devel@gnu.org; Sat, 11 Jan 2020 06:32:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=2i3gzvbgh3d3bo7yfqpvb5eru2hqctky; d=j4d.net; t=1578742335; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; bh=hD0bYbI6Bn0BKRFZJUDb7IZ3pph5ckBE5fDs12a57e0=; b=U4VN4qMCfTxsaFLypN7JcpAvzEf5RDhjsHe4o3qPSJfFmSniWgxVfYJij1Wx3ANn L8kNkr68kzbDnqDew6x0BBXdQX+bbb62iI2JfGOacBCBTd7z2QY+ZATbc+MBi38MKSr Yg75L3N2kH/4zApHkCs8pbtoHnJrN3SfRCqJWBA4= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1578742335; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Feedback-ID; bh=hD0bYbI6Bn0BKRFZJUDb7IZ3pph5ckBE5fDs12a57e0=; b=FxKONV1cIrH1QdMzGNQm0nIMFLfqxJQWtdOwW6pwo9oj3ZrEwhwq7oAmJ+ULVWyK tFlM81qRRXod7YjRzzyhgZ2PR6YcdSc/0/94lSBt/bICT2cpmt2D/yzfCMmEl0maVBe NnfpvdxHhxzagGDnr+wYvGB9yzIWPWDEjm6t2FoU= X-SES-Outgoing: 2020.01.11-54.240.8.79 Feedback-ID: 1.us-east-1.txOs6RzEvQ8hCXYeLqJ8lVjB3e7LuQl8h6pdq90PbRQ=:AmazonSES X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 54.240.8.79 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:244193 Archived-At: I haven't done any C/C++ programming on macOS. I am just a user who connects to remote machines for development. Those who have done it on macos, please help. On GNU/Linux, launching a debug build under a debugger is simple "gdb ". How does Emacs dev community do so on macos? Also tell me how to make a debug build on macos. Usually I just make install test the binary (./src/emacs -Q) rm -rf /Applications/Emacs.app cp -r nextstep/Emacs.app /Applications/Emacs.app In short, 1. How to make debug build? 2. How to launch emacs under a debugger on macos? 3. Any other instructions relevant for debugging. Regards, Pankaj