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.