I have the following code:
using System.Diagnostics;
namespace test
{
class Class1
{
static void Main()
{
Debug.WriteLine("hello world");
}
}
}
It results in the following errors:
Error CS0103 The name 'Debug' does not exist in the current context test
The parameter to the compiler is invalid, '/define:/d:DEBUG' will be ignored.
Why can't I use Debug.Print()?

Debugshould exist inSystem.Diagnosticsfor any normal project, regardless of whether theDEBUGidentifier is defined for the compiler or not. How did you get this project started? What kind of project is this?Debug.Print, however, but your screenshot doesn't show you trying to use that so I'm going to guess you're simple misrepresenting the code you're trying to compile in that comment, is that correct?Debug.Print()