<div dir="ltr">Currently trying to match received messages for ports, do the following:<br><br><font face="monospace, monospace">  erlang:trace_pattern('receive', [MyComplexMatchSpec], []),<br></font><div><font face="monospace, monospace">  erlang:trace(ports, true, [ports, timestamp, 'receive', {tracer, self()}]),<br></font><br></div><div>Got all messages received by port, filtering doesn't work. Okay, tried this one:<br><br><font face="monospace, monospace">  erlang:trace_pattern('receive', false, []),<br></font><div><font face="monospace, monospace">  erlang:trace(ports, true, [ports, timestamp, 'receive', {tracer, self()}]),</font><br><br>And still got all messages, while shouldn't receive any.<br><br>So, erlang:trace_pattern/3 is not supposed to work for ports? In official docs only processes are mentioned, but no explicit statement about ports.</div></div></div>