C# :: For Beginners

[C#] Debug 창에 문자열 출력하기

[C#] Debug 창에 문자열 출력하기

using System.Diagnostics;

static class Program
{
    static void Main()
    {
        Debug.WriteLine("Hello World!");
    }
}

Debugging 시 WriteLine 을 이용하면 Debug Console (디버그 콘솔) 창에 입력한 내용이 표시됩니다.

함수가 의도한대로 작동하는지, 예상한 절차대로 프로그램이 작동하는지 확인하는데 유용하게 쓰일 수 있습니다.

고맙습니다.

Leave a Reply

Discover more from Dream big, Achieve more.

Subscribe now to keep reading and get access to the full archive.

Continue reading