无法使用System.Diagnostics.Debug

时间:2018-05-16 21:00:29

标签: c#

我有以下代码:

using System.Diagnostics;

namespace test
{
    class Class1
    {
        static void Main()
        {
            Debug.WriteLine("hello world");
        }
    }
}

导致以下错误:

  

错误CS0103当前上下文测试中不存在名称“Debug”   编译器的参数无效,'/ define:/ d:DEBUG'将被忽略。

enter image description here

为什么我不能使用Debug.Print()

0 个答案:

没有答案
相关问题