From 80695127514ac42eb22804614c3cd3b60ff0b0af Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 20 Nov 2018 15:38:19 -0800 Subject: [PATCH] strace --- Debugging.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Debugging.md b/Debugging.md index c016bf4..88b96d0 100644 --- a/Debugging.md +++ b/Debugging.md @@ -14,9 +14,14 @@ You can find stderr output in: ### Dump LSP requests/responses -Use sysdig on Linux: +On Linux: + ```zsh +# sysdig sudo sysdig -As999 --unbuffered -p '%evt.type %proc.name %evt.buffer' "proc.exe contains ccls and fd.type=pipe" | egrep -v '^Content|^$' + +# strace +strace -s999 -e read,write -fp $(pgrep -fn ccls) ``` ### Stopping at the start to debug early issues