zsh-users
 help / color / mirror / code / Atom feed
* wishing: zsh debugger
@ 2006-12-07 15:53 mkkwong2
  2006-12-29  0:59 ` s. keeling
  0 siblings, 1 reply; 2+ messages in thread
From: mkkwong2 @ 2006-12-07 15:53 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-29  1:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-07 15:53 wishing: zsh debugger mkkwong2
2006-12-29  0:59 ` s. keeling

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).