System.Diagnostics.Debug
System.Diagnostics.Trace
private void button1_Click(object sender, EventArgs e) { int val=78; System.Diagnostics.Trace.WriteLine("テストメッセージ"); System.Diagnostics.Debug.WriteLine(val); }