Spy on inter process comunication(IPC)
Spy on ipc communications, by replacing the binary that is spawned with a wrapper that logs all the communication while still forwarding the messages to the original processes.
This is for example useful to see what an lsp is sending exactly, or any other based ipc setup.
deno install -A jsr:@sigmasd/ipc-spy
ipc-spy $pathTotargetfile
This will create a new executable with -spy suffix appeneded to it in the
current directory.
The next step is to run the new program $file-spy or make another program call
it (like a text editor in case of lsp).
Now the messages will be logged to $tmp/${executable_name}_stdin.log,
$tmp/${executable_name_stdout}.log and $tmp/${executable_name_stderr}.log
Example 1