I am trying a tutorial from 3 years ago and learning C# but it not working

I am trying a tutorial from 3 years ago and learning C# but it not working It says something like windows couldnt destroy something: #1, its not saying it anymore it just doing nothing now. if your wondering the code i am trying to do is Debug.Log(“text”); i dont know whats happening im new to this.

Unity changes really fast, so 3 year old tutorial can have a lot of old code, that is not used today. If you could post your code maybe i could help you