all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: rocky <rocky@gnu.org>
To: help-gnu-emacs@gnu.org
Cc: help-gnu-emacs@gnu.org
Subject: Re: debugging bash script in emacs using bashdb
Date: Fri, 15 Jun 2012 14:28:01 -0700 (PDT)	[thread overview]
Message-ID: <5080d1eb-4df3-4a49-b1eb-67bcd9fc1efe@googlegroups.com> (raw)
In-Reply-To: <mailman.706.1309416118.785.help-gnu-emacs@gnu.org>

On Thursday, June 30, 2011 2:41:42 AM UTC-4, Andreas Röhler 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
> 
> Hi,
> 
> when using the command line debugger from the emacs shell -- `M-x shell' 
> -- you will already have a great advantage, as the output is within the 
> 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 debugger output. This is set up via M-x dbgr-track-mode. And as with other modes one can turn that on or off or switch the kinds of debuggers one is working 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". 


> 
> Strategically, if you are new to Emacs, I recommend exploring Emacs 
> itself first rather than running third-party programs, which may need 
> some adaption. Quit often that jumps into complexity.
> 
> 
> Andreas
> 
> --
> https://code.launchpad.net/~a-roehler/python-mode/components-python-mode
> https://code.launchpad.net/s-x-emacs-werkstatt/



      parent reply	other threads:[~2012-06-15 21:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-29 23:22 debugging bash script in emacs using bashdb fiftyeight
2011-06-30  6:41 ` Andreas Röhler
2011-06-30 11:08   ` Peter Dyballa
2011-06-30 13:08 ` rocky
     [not found] ` <mailman.738.1309439719.785.help-gnu-emacs@gnu.org>
2012-06-15 19:49   ` zackp
2012-06-15 20:04     ` zack.perry
2012-06-15 21:18     ` Rocky Bernstein
     [not found]   ` <mailman.2896.1339792385.855.help-gnu-emacs@gnu.org>
2012-06-15 21:22     ` rocky
2012-06-16 18:42       ` zackp
     [not found] ` <mailman.706.1309416118.785.help-gnu-emacs@gnu.org>
2012-06-15 21:28   ` rocky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5080d1eb-4df3-4a49-b1eb-67bcd9fc1efe@googlegroups.com \
    --to=rocky@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.