From: Phil Pennock <zsh-workers+phil.pennock@spodhuis.org>
To: shawn wilson <ag4ve.us@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: zshrc alias
Date: Wed, 2 Oct 2013 18:19:46 -0400 [thread overview]
Message-ID: <20131002221946.GA42077@redoubt.spodhuis.org> (raw)
In-Reply-To: <CAH_OBiektUO2yU74bwSyqi0CSsX1KLbODGugnxpL_RqAtr2h9Q@mail.gmail.com>
On 2013-10-02 at 15:37 -0400, shawn wilson wrote:
> Is there a way to see what zsh is doing when it loads the rc file?
I keep this at the top of my .zshenv file and uncomment the first line
when I want to debug something:
----------------------------8< cut here >8------------------------------
#TRACE_ZSH_TIME=t TRACE_ZSH=t TRACE_ZSH_FILE=/tmp/pdp-zsh.$$.log
[[ -n $TRACE_ZSH_PROF ]] && zmodload -i zsh/zprof
[[ -n $TRACE_ZSH_TIME ]] && PS4='+[%D{%M:%S}]%N:%i> '
if [[ -n $TRACE_ZSH ]]; then
[[ -n "$TRACE_ZSH_FILE" ]] && exec 2> "${TRACE_ZSH_FILE}"
setopt xtrace
fi
----------------------------8< cut here >8------------------------------
Yes, you lose stderr to a file, I can accept that for the purpose of
this debugging.
-Phil
next prev parent reply other threads:[~2013-10-02 22:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-02 19:37 shawn wilson
2013-10-02 19:45 ` Jérémie Roquet
2013-10-02 19:54 ` shawn wilson
2013-10-02 20:09 ` Jérémie Roquet
2013-10-02 22:19 ` Phil Pennock [this message]
2013-10-02 22:27 ` shawn wilson
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=20131002221946.GA42077@redoubt.spodhuis.org \
--to=zsh-workers+phil.pennock@spodhuis.org \
--cc=ag4ve.us@gmail.com \
--cc=zsh-users@zsh.org \
/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).