From d746c5daa15d629d8dcdc4b4eed6b65d02541926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Wed, 5 Jun 2019 20:56:03 +0200 Subject: [PATCH] Add zsh session init debugging command --- Troubleshooting.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Troubleshooting.md b/Troubleshooting.md index 2eb4f08..24bb6d7 100644 --- a/Troubleshooting.md +++ b/Troubleshooting.md @@ -48,4 +48,10 @@ As a last resort, if you're getting weird behavior and can't find the culprit, r ```shell zsh -xv &> >(tee ~/omz-debug.log 2>/dev/null) ``` + Afterwards, reproduce the behavior (_i.e._ if it's a particular command, run it), and when you're done, run `exit` to stop the debugging session. This will create a `omz-debug.log` file on your home directory, which you can upload to [gist.github.com](https://gist.github.com/) and link to it on the issue you'll open next. + +If you only need to debug the session initialization, you can do so with the command: +```shell +zsh -xvic exit &> ~/omz-debug.log +``` \ No newline at end of file