
The Situation
Working on an ASP.NET project, I had to focus on debugging a particular web form at a specific moment. I made the necessary changes to the .aspx (or .aspx.cs) file and then I hit the fifth functional key in order to see how the things evolved. Well, the image I saw was not exactly the one I was working on...
The Explanation
The page automatically loaded when debugging starts has to be specified by setting the Properties/Configuration Properties/Debugging/Start Page property. It's a pretty long way to go there and it has to be written by hand because no Open File dialog is available.
An alternative solution would be to provide a link from the Start Page to the current page, or to write its path in the browser address field, but this is not as painless as it can get.
The Add-in
When installed, it registers an item in the Tools menu. This item will provide the same functionality as the classical Debug/Start option but, before the debugging starts, it will also make sure that the currently edited web form is set as the Start Page option. If no .aspx or .aspx.cs file is under surgery, then it makes no change in the properties.
The option is available only when a project is loaded, and it works like Debug/Start with any other type of project; therefore you can safely "move" the F5 shortcut to the add-in's item, if you think it's appropriate.