From 54889eb87a10cb7731b44d31fa9e151e1ebf1f41 Mon Sep 17 00:00:00 2001 From: native-api Date: Sun, 31 Oct 2021 05:14:03 +0300 Subject: [PATCH] Make gist generation instructions more explicit; add Zsh PS4 --- .github/ISSUE_TEMPLATE.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 7e57cf49..23ec14bb 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -17,12 +17,13 @@ Make sure you have checked all steps below. - [ ] pyenv version: - [ ] Python version: - [ ] C Compiler information (e.g. gcc 7.3): -- [ ] Please attach a debug trace log as gist - * If the problem happens in a Pyenv invocation, you can turn on debug logging by setting `PYENV_DEBUG=1`, e.g. `env PYENV_DEBUG=1 pyenv install -v 3.6.4` +- [ ] Please reproduce the problem with debug tracing enabled and attach the resulting output as a gist + * If the problem happens in a Pyenv invocation, you can turn on tracing by setting `PYENV_DEBUG=1`, e.g. `env PYENV_DEBUG=1 pyenv install -v 3.6.4` * If the problem is with `pyenv install`, make sure to also enable its verbose mode (`-v`) - * If the problem happens outside of a Pyenv invocation, get the debug log like this: - ``` - export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' + * If the problem happens outside of a Pyenv invocation, enable shell trace output like this: + ```sh + export PS4='+(${(%):-%x}:${LINENO}): ${funcstack[0]:+${funcstack[0]}(): }' #Zsh + export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' #Bash set -x set +x