As I'm currently trying to debug an issue with my SPI link, which is addressed through pigpio, I'd like to make pigpiod write warnings and debug messages (if such occur) to stderr.
1 Answer
Errors are reported to /dev/pigerr
on the Pi running the daemon.
So cat /dev/pigerr
may provide useful information.
You can enable tracing of the API by using the pigs csi command.
Numbers 1 to 7 should uncover more tracing.
Try something like pigs csi 5
or pigs csi 6
.
The results will be sent to /dev/pigerr
.
-
OK, thank you!
pigs csi 5
was apparently the solution. I now get quite a lot of debug messages.– NeppomukCommented Dec 7, 2018 at 21:54 -
Keep in mind that
/dev/pigerr
is a FIFO. Usecat
as recommended, nottail -f
, which will not show you anything. Commented Apr 6, 2023 at 7:16