MySQL 9.4 Reference Manual Including MySQL NDB Cluster 9.4
Anything written to the trace is automatically written to the debug file.