Use the -t (trace mode) at start-up to observe how ttsession processes each message you send. You can also toggle the trace mode on and off by sending ttsession a USR1 signal; for example:
kill -USR1 <ttsession_pid> |
Alternatively, you can use the ttsnoop and/or tttrace utilities to monitor a message.