zsh-workers
 help / color / mirror / code / Atom feed
From: "Rocky Bernstein" <rocky.bernstein@gmail.com>
To: "Zsh hackers list" <zsh-workers@sunsite.dk>
Subject: zshdb ready for stalwart hackers
Date: Thu, 25 Sep 2008 12:25:18 -0400	[thread overview]
Message-ID: <6cd6de210809250925m560d28d2o58e95e695d63374f@mail.gmail.com> (raw)

I think zshdb is good enough for stalwart hackers to get an initial
feel for it. To try out

   git-clone git://github.com/rocky/zshdb.git
   cd zshdb
   ./configure # possibly --with-zsh=/location/of/cvs/zsh
   make && make test
   sudo make install # if happy with the above

But to play the game you really do need a recent version of zsh. That
is, from CVS - recall that there was a  patch recently to make fc work
when not interactive (and funcfiletrace addition, line number
corrections, exec status code bug fix, etc.)

What's there is a little frail. These are some of the issues any
debugger (especially one written in zsh) has to deal with:
   setting emulation modes and zsh options, and built-in variables like IFS
   redirecting input/ouput and/or dev/nulling it
   using dynamic variables like $?
   running inside a subshell or nested shell.

zshdb does try to deal with all of this, but it has gaps which will
take time to work out.

Sometimes when zshdb runs into an error, the debugged program just
continues running to the end.

As before, a number of features that are in bashdb and the other
gdb-like debuggers I've worked on are not there yet. These include
conditions on breakpoints, display statements, logging options, and a
gdb "return" statement (but here I think I'm waiting on support inside
zsh).

But that said, I've been able to use it without total disaster on
large configure files and start/stop scripts that source other files,
and scripts that have redirections in them and so on.

If past experience is a guide, folks will come up with lots of
features they'd like to see. It's all zsh code, so feel free to jump
in add add what you want. :-)

As before an overall guide or document is lacking. If you are familiar
with gdb or any of the gdb-like debuggers I've worked on (bashdb,
pydb, ruby-debug, remake), this is like that. Probably closest of
course to bashdb with a little bit of a face lift.

Share and enjoy!


             reply	other threads:[~2008-09-25 16:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-25 16:25 Rocky Bernstein [this message]
2008-09-26 17:47 ` Clint Adams
2008-09-26 18:34   ` Rocky Bernstein
2008-09-26 19:23     ` Clint Adams

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=6cd6de210809250925m560d28d2o58e95e695d63374f@mail.gmail.com \
    --to=rocky.bernstein@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /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 public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).