Program starting itself is the same. But you can detect whether a debugger is attached (VS is a debugger): using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { if (System.Diagnostics.Debugger.IsAttached) //<------- { Console.WriteLine("A debugger is attached"); } Console.ReadLine(); } } }
But you can detect whether a debugger is attached (VS is a debugger):
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
if (System.Diagnostics.Debugger.IsAttached) //<-------
{
Console.WriteLine("A debugger is attached");
}
Console.ReadLine();
}
}
}