When trying to debug a ASP.NET MVC app, the breakpoints in my controllers arent getting hit. When entering debug mode they just show an empty red circle with a warning trian
I had the same problem. Check here: Tools->Options->Debugging
Check the script check box. Run the application.
I got installation corrupt message box, so did a repair of vs 2008, and its working now.
Quick fix...
Run my project in Debug. Cleaned and rebuild solution (MVC).
Re run the UI project and the Breakpoints started working again.
Hope this will help someone.
Change in Visual Studio Header Release option to Debug
I had Shelved my changes in TFS and had a breakpoint set on a shelved cs file that was not part of the solution anymore. Once I retrieved my Shelveset, everything worked.
Few more possibilities:
If you have a client and server in your solution (lets say a WPF and WCF app) you should make sure you select 'multiple startup projects'. [this one is similar to your accepted answer, but useful if you need a client running too]
Release mode is selected for the project. When doing a fresh get (as I discovered today) on a new machine VS seems to like to switch to 'Release' configuration profile.
Make sure that your compilation framework version is the same as your project's compilation framework.. I ran into this and it was because the project was being compiled as 4.5 and the compilation attrib in the web config was trying to debug it as 4.5.1.