G
Guest
Hi everyone,
When I compile in Visual Studio as DEBUG, I see the line "Debugging..." when
I execute the program.
But when I compile as a Release, I also see this "Debugging..." line when I
execute the program. What is the cause of this problem?
best regards,
Filip De Backer
*****************************************
#define DEBUGGING
using System;
using System.Collections.Generic;
using System.Text;
namespace ProgrammingTest
{
class Program
{
#if DEBUGGING
static void OutputLocals()
{
Console.WriteLine("debugging...");
Console.ReadLine();
}
#endif
static void Main(string[] args)
{
#if DEBUGGING
OutputLocals();
#endif
}
}
}
********************************************
When I compile in Visual Studio as DEBUG, I see the line "Debugging..." when
I execute the program.
But when I compile as a Release, I also see this "Debugging..." line when I
execute the program. What is the cause of this problem?
best regards,
Filip De Backer
*****************************************
#define DEBUGGING
using System;
using System.Collections.Generic;
using System.Text;
namespace ProgrammingTest
{
class Program
{
#if DEBUGGING
static void OutputLocals()
{
Console.WriteLine("debugging...");
Console.ReadLine();
}
#endif
static void Main(string[] args)
{
#if DEBUGGING
OutputLocals();
#endif
}
}
}
********************************************