zsh-workers
 help / color / mirror / code / Atom feed
* Feature Request: Allow skipping zsh statement on return from trap DEBUG
@ 2019-10-24 20:17 Rocky Bernstein
  2019-10-25 17:52 ` Stephane Chazelas
  0 siblings, 1 reply; 3+ messages in thread
From: Rocky Bernstein @ 2019-10-24 20:17 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 784 bytes --]

A while ago I wrote a debugger for zsh called zshdb
<https://zshdb.readthedocs.io/en/latest/>. See also
https://repology.org/project/zshdb/versions .

A feature that is missing in the debugger and that is available in the
corresponding debugger for bash, bashdb,  is the skip command.

This command skips over the upcoming statement to be executed. The way this
works in bashdb, is that if the debug hook returns with a nonzero value.
The way BASH works is that if the trap DEBUG hook returns a nonzero value,
BASH skips statement to be run.

Thoughts about extening zsh so that it too will skip the upcoming statement
if the zsh trap DEBUG hook return a non-zero value.  Or more generally some
means by which a DEBUG hook can indicate to zsh to skip the upcoming
statement?

Thanks.

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

end of thread, other threads:[~2019-10-26  1:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-24 20:17 Feature Request: Allow skipping zsh statement on return from trap DEBUG Rocky Bernstein
2019-10-25 17:52 ` Stephane Chazelas
2019-10-26  1:37   ` Rocky Bernstein

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