Re: [dev] debugging sj

From: Greg Reagle <greg.reagle_AT_umbc.edu>
Date: Tue, 1 Dec 2015 11:35:46 -0500

On 12/01/2015 10:55 AM, Greg Reagle wrote:
> I don't experience any bugs in sj, but I would like to see the raw XML
> messages that are sent back and forth via sj, messaged, iqd, and
> presenced, in order to be able to understand better.
>
> These programs write to "in" files (named pipes). So what is the best
> (easiest, most convenient) way to get this info?
>
> I could add debug-guarded printf statements all over the code. What
> about using the tee command? That seems like that might work
> conceptually, but I don't have the expertise to know how to do this.

I discovered strace, which does the job.
Received on Tue Dec 01 2015 - 17:35:46 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 01 2015 - 17:48:04 CET