From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rocky Newsgroups: gmane.emacs.help Subject: Re: debugging bash script in emacs using bashdb Date: Fri, 15 Jun 2012 14:28:01 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5080d1eb-4df3-4a49-b1eb-67bcd9fc1efe@googlegroups.com> References: <31959141.post@talk.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1339797314 18214 80.91.229.3 (15 Jun 2012 21:55:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Jun 2012 21:55:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 15 23:55:14 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SfeU4-0000g6-4D for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jun 2012 23:55:12 +0200 Original-Received: from localhost ([::1]:45827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfeU4-0002t8-47 for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jun 2012 17:55:12 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 48 Original-NNTP-Posting-Host: 71.183.236.17 Original-X-Trace: posting.google.com 1339797162 8593 127.0.0.1 (15 Jun 2012 21:52:42 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 15 Jun 2012 21:52:42 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.183.236.17; posting-account=jKjGDQoAAABKN2iauJtD3DV5oMZpXuQo User-Agent: G2/1.0 Original-Xref: usenet.stanford.edu gnu.emacs.help:192860 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85259 Archived-At: On Thursday, June 30, 2011 2:41:42 AM UTC-4, Andreas R=F6hler wrote: > Am 30.06.2011 01:22, schrieb fiftyeight: > > > > Hi, I'm new to emacs and I'm trying to debug bash script with it. > > I've downloaded the bashdb package and it works for me > > when I use it from the terminal. > > > > But I read in the bashdb website that you can use it with emacs, > > they have a link there to a project called emacs-dbgr, > > but after downloading and installing the emacs-dbgr > > I enter emacs and do M-x load-libarary dbgr like the installation > > instructions > > say but I just tells me "cannot open load file". > > > > Can anybody tell me how I debug bash scripts using emacs? > > either with the emacs-dbgr library or anything else >=20 > Hi, >=20 > when using the command line debugger from the emacs shell -- `M-x shell'= =20 > -- you will already have a great advantage, as the output is within the= =20 > editor. One of the cool things about emacs-dbgr is that yes you can start off in a = shell and then later go into a minor mode which tracks your position from d= ebugger output. This is set up via M-x dbgr-track-mode. And as with other m= odes one can turn that on or off or switch the kinds of debuggers one is wo= rking with. That said, for those that want more context shown inside the shell (whether= in emacs or not) bashdb and a number of other debuggers have the command "= set autolist on".=20 >=20 > Strategically, if you are new to Emacs, I recommend exploring Emacs=20 > itself first rather than running third-party programs, which may need=20 > some adaption. Quit often that jumps into complexity. >=20 >=20 > Andreas >=20 > -- > https://code.launchpad.net/~a-roehler/python-mode/components-python-mode > https://code.launchpad.net/s-x-emacs-werkstatt/