I launch VS 2010. Click on create new project. Type the following code in. Hit f5. Runs fine. But when I try and set a break point either by F9 or by right click on a line of code and chose Breakpoint -> Insert Breakpoint, nothing happens.
The project properties are set to Debug.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SetBreakPoints
{
class Program
{
static void Main(string[] args)
{
int a = 7;
int b = 5;
a = a - b;
b = b + a;
a = b - a;
Console.WriteLine("Value of a is {0} and value of b is {1}", a, b);
Console.ReadKey();
}
}
}