From 365bcbd90f02190776970ecbcd802f0b76b5654b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Mon, 4 May 2015 21:06:17 +0200 Subject: [PATCH] Detail zsh debugging procedure --- Troubleshooting.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Troubleshooting.md b/Troubleshooting.md index d23a86e..ccce404 100644 --- a/Troubleshooting.md +++ b/Troubleshooting.md @@ -33,4 +33,9 @@ Many completion problems, including the infamous `command not found: compdef`, c ### Everything else -*...to be filled...* \ No newline at end of file +As a last resort, if you're getting weird behavior and can't find the culprit, run the following command to enable debug mode: +```sh +zsh -xv 2> >(tee ~/omz-debug.log &>/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. \ No newline at end of file