Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh debugger skeleton code
- X-seq: zsh-workers 25426
- From: "Rocky Bernstein" <rocky.bernstein@xxxxxxxxx>
- To: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Subject: zsh debugger skeleton code
- Date: Sat, 9 Aug 2008 12:38:01 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=xtkX03sIIZlzYXdlTYbson+VZMWtfxgUbUWpEW2e/jg=; b=Fn2M4+1mzZVxcgm9Ar02MpqPKHSKEDLt5UT6C3vC/ajVisdfHP018/F+tMdwqlmvBt 3PJO/4E3a4UceHMwO6H2LS51SVZv1yAqZ/Y0hRpoS7w9a/VRqSyn1ob0sitMguUHTz5T Prw0UQGId10K62byAUxN21MUTjof8T8PRp/9A=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=Rnjp/fxwTLSKUt83LA6UH5iD6o8z5fzymXugKLfU3nYOdrBWKeVw24Isr7R329ehpG Jv1XmQc3yZYjOWwAUWL6qUJu0zg4NOvFtRc20Z4rilApGrDs3geupvdlrplnGZwrA22q nDGxHW6iD85p1DDUXm0kUCoXclfwtz+CkC1fI=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
I've put the skeletal zsh debugger code I've been working on
github. This code is probably not usable for novices (yet).
To browse code: http://github.com/rocky/zshdb/tree/master
To get a copy:
git-clone git://github.com/rocky/zshdb.git
The README http://github.com/rocky/zshdb/tree/master/README has full
details and this is an summary of information from that.
To use and play the game, you'll need patched CVS zsh sources. In
particular the "functrace" function should report filenames and
absolute line numbers. Also both "functrace" and "funcstack" should
include source'd files in their arrays. I don't have a check in right
now a compatible zsh in the code right now, will add this soon.
Assuming you have a compatible zsh and downlaoded:
cd zshdb
./autogen.sh # Add configure options. See ./configure --help
make && make check
In the unlikely event this works for you, running ./zshdb with no
arguments in the checked out directory runs a silly test program
testing.sh. Of course you can give your own file name and down the
line testing.sh will be removed.
The initial gdb-like commands I've put in:
alias eval run trace where
continue frame source untrace
down print step up
(actually alias, eval, trace and untrace aren't gdb) .
What's missing falls into a two categories:
* Stuff that can be ported in a straightforward way from bashdb
* Stuff that needs additional zsh support
A breakdown of some of the things missing right now. Again details of
why, how and when are in the README
* source listing commands
* breakpoints
* next (step over function calls)
* Showing frame arguments
* Information persisting when a subshell is left
* "skip" command
* Setting $0
* lots of other stuff including...
display expressions, signal handling, invoking the debugger directly
from a script, command history, command completion.
Share and Enjoy!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author