MySQL 9.4 Reference Manual Including MySQL NDB Cluster 9.4

10.15.7 Interaction with the --debug Option

Anything written to the trace is automatically written to the debug file.