zsh-users
 help / color / mirror / code / Atom feed
* TRAPDEBUG vs zsh -x
@ 2022-04-20 19:46 Zach Riggle
  2022-04-20 23:55 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Zach Riggle @ 2022-04-20 19:46 UTC (permalink / raw)
  To: Zsh Users

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

Hello all!

I'm quite fond of debugging with a custom script using TRAPDEBUG, but the
limitation is that the provided arguments are before the full command has
been expanded.

When using "zsh -x", we see all of the lines after they've been fully
evaluated, but there's no way to add syntax highlighting sugar to these
lines.

Are there any TRAPXXX functions which are passed the same text as "zsh -x"
will emit (sans the $PS4 expansion).

Thanks!
*Zach Riggle*

[-- Attachment #2: Type: text/html, Size: 778 bytes --]

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

end of thread, other threads:[~2022-04-21 18:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20 19:46 TRAPDEBUG vs zsh -x Zach Riggle
2022-04-20 23:55 ` Bart Schaefer
2022-04-21 18:42   ` Bart Schaefer

Code repositories for project(s) associated with this 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).