I am making a WPF application and I want to release a beta version of the application, for that I am adding a Button named \"debug\" Which will
Button
Do you think now I understood the question?
[DllImport("Kernel32")] public static extern void AllocConsole(); [DllImport("Kernel32")] public static extern void FreeConsole(); private void button1_Click(object sender, EventArgs e) { AllocConsole(); Console.WriteLine("test"); }