From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: James Nguyen Newsgroups: gmane.emacs.bugs Subject: bug#30151: Debugger API Date: Wed, 17 Jan 2018 20:56:38 -0800 Message-ID: <1516251398.1364994.1239356432.7334F1AF@webmail.messagingengine.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1516251319 15859 195.159.176.226 (18 Jan 2018 04:55:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 Jan 2018 04:55:19 +0000 (UTC) To: 30151@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 18 05:55:14 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ec2EG-0003V9-GF for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jan 2018 05:55:09 +0100 Original-Received: from localhost ([::1]:60809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ec2GG-00084b-Bz for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jan 2018 23:57:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ec2G9-00084C-Jn for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2018 23:57:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ec2G6-00047Q-Ix for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2018 23:57:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52946) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ec2G6-00047H-DC for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2018 23:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ec2G6-0001BD-0D for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2018 23:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: James Nguyen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Jan 2018 04:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30151 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15162514154517 (code B ref -1); Thu, 18 Jan 2018 04:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Jan 2018 04:56:55 +0000 Original-Received: from localhost ([127.0.0.1]:60843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ec2Fz-0001An-EZ for submit@debbugs.gnu.org; Wed, 17 Jan 2018 23:56:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ec2Fx-0001Aa-F6 for submit@debbugs.gnu.org; Wed, 17 Jan 2018 23:56:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ec2Fr-0003yX-9I for submit@debbugs.gnu.org; Wed, 17 Jan 2018 23:56:48 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40400) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ec2Fr-0003yN-5K for submit@debbugs.gnu.org; Wed, 17 Jan 2018 23:56:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ec2Fp-00080J-Sc for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2018 23:56:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ec2Fm-0003wV-RJ for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2018 23:56:45 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:44777) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ec2Fm-0003uF-JS for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2018 23:56:42 -0500 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 72DC520E5B for ; Wed, 17 Jan 2018 23:56:38 -0500 (EST) Original-Received: from web4 ([10.202.2.214]) by compute7.internal (MEProxy); Wed, 17 Jan 2018 23:56:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jojojames.com; h=content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=n9HuiluBDCfBEM3YOxqerpg5mrh8Q4qvU/guAuEs/t0=; b=aUVdDX+a OufWNxqM1Vj0HaxYGisQRcFBnoGbO4kmKkPT6Ncm017mnVWEcd+JagK03DEM5Y9m evkwuUyMWLjHsREtnA/9W43moDQahC5b2TH0xNRO71mY/37sqlGDeL5Lml7cXY5F SNK6CZ3lJO1lcux8ZP5UKiTFY/oNrQBUkT49zahhNCz5DIFGQeSqV64jyUf9QnSO h9rVktcj9ZTAQtfbpaPGwZI6tCEpihZTHhjh9AeifxNctktlXtU7GbaCzF4zy5M7 dDnv+55PmenA8mxqeBNcqgiqH5Pb/uc6EZgbXZyaHjxjg9/MD6QO7XuxQRLVbjOW mn7TYdfKxReIDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=n9HuiluBDCfBEM3YOxqerpg5mrh8Q 4qvU/guAuEs/t0=; b=aYDmHux4VIsgPBzobRYNdP3Du6op/XaNG2D6ekS34Tg16 ZKXIHqk6Jf5w8++YaaSoK/rMdW4zjApDALdgzI6nUGMKO6lT34PBQD5/8vODiDm7 7ORlPvQwsOh6Oj/9kjVOIEcnY7A8R57cGl+7XgA+M1yIrxQqIy9o6lR6p+4PQELD vqdXu8XDovG5CDMoUe3fzcwSVH2qjWqylnCiwd3Ti37TJ9CU/3hb57vyZ/2ZGDED JKkKhDLtcsxzfmOPvCT/QUCTND3I924Xerix1BCt6iuveHnbuAaVH465Ls7Q7JkE pa4lNfUBg4Zd6UrjvrXDBwaIfLQpYevNh/XcPoGGA== X-ME-Sender: Original-Received: by mailuser.nyi.internal (Postfix, from userid 99) id 47D4DBA1AC; Wed, 17 Jan 2018 23:56:38 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface - ajax-75de3051 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142245 Archived-At: I've been meaning to look at how to implement a debugger for Emacs for various languages. There seems to be various options to go with (realgud, gud/gud-mi?, NIH roll my own) and it seems the community chooses different paths (including not writing one at all). Some debuggers that come to mind are: edebug, gud-gdb, realgud, cider, indium, jdibug with a varied feature set. I'm curious if it makes sense (or is doable) to have something similar to flycheck/flymake but for debugging (or like VSCode's https://code.visualstudio.com/docs/extensionAPI/api-debugging) so that there's a common interface to writing a debugger. gud-def looks to be the closest thing but it seems somewhat low level given it doesn't draw breakpoints on screen (random example) or provide something like a 'locals' view. If gud-def is the recommended approach, I wonder why the other debuggers (list mentioned above) don't leverage it. -- James Nguyen james@jojojames.com