From: mkkwong2@alcatel-lucent.com
To: zsh-users@sunsite.dk
Subject: wishing: zsh debugger
Date: Thu, 7 Dec 2006 09:53:01 -0600 (CST) [thread overview]
Message-ID: <200612071553.kB7Fr1003000@nwsgpa.ih.lucent.com> (raw)
In my opinion, one thing that deters people from writing more
complicated zsh scripts is the lack of a symbolic debugger. C/C++,
Perl and Ruby all have one.
"zsh -x SCRIPT" helps but often it prints too much, much more than
we really need. Say, if there is a bug near the beginning of the
script, then the output from the later part of the program becomes
mere noise and is distracting.
Wish that someone will write a debugger, even a very simple one to
start out with can be greatly helpful. It only needs to have the
capability to
* step through line by line
* step into functions (at least for those defined within the
same script)
* set breakpoint for given line numbers
* print and set variable values while at a break point.
Making use of the output from "zsh -x", It is easy to write a perl
script to simulate a fake-debugger that can do the first 3 bullet
items. Someone more capable will have to write a real one that can
do all 4.
mk kwong
next reply other threads:[~2006-12-07 18:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-07 15:53 mkkwong2 [this message]
2006-12-29 0:59 ` s. keeling
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=200612071553.kB7Fr1003000@nwsgpa.ih.lucent.com \
--to=mkkwong2@alcatel-lucent.com \
--cc=zsh-users@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).