What is the difference between Debug.Write and Trace.Write?

Debug.Write is usually used in the debug mode while you are debugging a project.

Trace.Write is usually used in the release mode to produce some trace logs.