Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
A question about debugging zsh using set -x to an independent log file
- X-seq: zsh-users 22682
- From: Steven Lu <stevenlu443@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: A question about debugging zsh using set -x to an independent log file
- Date: Sat, 22 Apr 2017 19:56:04 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=wG/Ib3vFBdiKxy9YrKA7zRLRi7A+ZQpO/UZn3qRTVQE=; b=K14VZqbhDX4rwK7EQ3wkYKcu1eW8uc/wWVlOaANWwMSzYWB/aRtAXgSTk2AtbUN+Qu UJJe5UhNq4dAf0dpuKgSATuL9nrr/LG5vjaEUGbVgk/QKXe+GFcwAPPSfMZP391jTA7t h+K+KRuQYs6QG2vn0Q6V4plqv8/Ojh2C9ifQhyPr8ObG63eGy3wyUSSHihJW3eO+kQ8z pjXwfxVPgzo/JQYyvTkQZvKWOm99gd/0ivCwoXHJqsoz/DpgTrX6jSLHkYXR5b2VJTMW s1YfQMWxzeqhywFvSTkMrrIcFf2AkOjz9Jcs2ekiwImdB603FS46HmJJu33iVwjO+qG1 i7dg==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I have a very highly instrumented zsh and am experiencing a particular
heisenbug. The zsh process just exits for no apparent reason. I have set
the OS to produce coredumps and this did not generate any when the issue
was reproduced.
I think that a reasonable approach to debugging that is very likely to
produce useful results is to use the set -x option to show each command
that ran. then at least I can see what area of plugins might be implicated.
The problem is that this is a heisenbug and it comes and goes, the shell
will be simply unusable when the xtrace output is there, and I can't really
use the shell effectively if I redirect stderr to a file. So I am hoping
there is a way to get the xtrace output and ONLY the xtrace output into a
separate file. If there is no feature in place I still expect that there
should be an easy way to patch zsh to allow me this.
Thanks.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author