aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRadon Rosborough <radon@intuitiveexplanations.com>2023-10-29 16:25:04 -0700
committerGitHub <noreply@github.com>2023-10-29 16:25:04 -0700
commit4178439d438c923f1baccebb63e1edfb00a257a1 (patch)
treece14caf7b491f19a3abf8588d39951a73261afe2 /README.md
parent7d3b061e3ecab6f407093b1727627550bcdea4b7 (diff)
[#226] Add debug logs (#235)
Adds a way to properly diagnose performance issues like those reported in https://github.com/radian-software/apheleia/issues/226.
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 12 insertions, 1 deletions
diff --git a/README.md b/README.md
index 8ac6e5c..1abaf2a 100644
--- a/README.md
+++ b/README.md
@@ -221,7 +221,18 @@ Apheleia exposes some hooks for advanced customization:
one of these returns non-nil then `apheleia-mode` is not enabled in
the buffer.
-## Known issues
+## Troubleshooting
+
+Try running your formatter outside of Emacs to verify it works there.
+Check what command-line options it is configured with in
+`apheleia-formatters`.
+
+To debug internal bugs, race conditions, or performance issues, try
+setting `apheleia-log-debug-info` to non-nil and check the contents of
+`*apheleia-debug-log*`. It will have detailed trace information about
+most operations performed by Apheleia.
+
+### Known issues
* `process aphelieia-whatever no longer connected to pipe; closed it`:
This happens on older Emacs versions when formatting a buffer with