strace

Fangrui Song 2018-11-20 15:38:19 -08:00
parent 0d70eb46a0
commit 8069512751

@ -14,9 +14,14 @@ You can find stderr output in:
### Dump LSP requests/responses ### Dump LSP requests/responses
Use sysdig on Linux: On Linux:
```zsh ```zsh
# sysdig
sudo sysdig -As999 --unbuffered -p '%evt.type %proc.name %evt.buffer' "proc.exe contains ccls and fd.type=pipe" | egrep -v '^Content|^$' 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 ### Stopping at the start to debug early issues