title: erlang - inspect mailbox messages once at a time
body: <p>I am trying to inspect the messages a node receives from other nodes, but in some other manner other than <code>flush()</code>, because the message size is rather big and it doesn't help. Also, I can see the messages with <code>erlang:process_info(self(), messages_queue_len).</code>, but I would like some way of extracting one message at a time in some kind of variable for debugging purposes.</p>