Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
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.
IPC-Spy
Spy on inter process comunication(IPC)
What does it do?
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.
Install
deno install -A jsr:@sigmasd/ipc-spy
Usage
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
Add Package
deno add jsr:@sigmasd/ipc-spy
Import symbol
import * as ipc_spy from "@sigmasd/ipc-spy";
Import directly with a jsr specifier
import * as ipc_spy from "jsr:@sigmasd/ipc-spy";