Debugging Fails, Breakpoints not hit.
This problem exists on two machines here, one running XP SP2 Home, the other running Vista Home Premium SP1, both using VS2008 Standard with Silverlight Tools for Visual Studio 2008
To reproduce this problem follow these steps.
1. First make sure that your IE browser is set to "Disable script debugging". (Since we are working on a Silverlight 2 .NET3.5 application, there is no Javascript used.)
2. Open a new project in VS2008 and create a Silverlight application. Choose to add a new Web to the solution for hosting the control.
3. Open the Page.xaml code behind and place a breakpoint on the InitializeComponent() statement.
4. Click F5 to run and click OK in the dialog to modify the Web.config file to enable debugging.
5. The breakpoint is hit. Now end the program execution.
6. Right click on the Web project and select Properties Pages.
7. Select Start Options and change the Specific page from "SilverlightApplication1TestPage.aspx" to "SilverlightApplication1TestPage.html" (note that this page contains Javascript). Click OK.
8. Click OK
9. Click F5 to run. Now click Yes in the dialog to continue debugging even though script debugging is disabled (we don't care about script debugging since we are using managed code in a Silverlight 2 application).
10. The breakpoint is NOT hit. Debugging is disabled. Now end the program execution.
11. Repeat steps 6, 7, and 8 to change the specific start page back to "SilverlightApplication1TestPage.aspx".
12. Click F5 to run. Notice that the same warning dialob box is presented even though our start page has no Javascript. Click Yes.
13. The breakpoint is NOT hit. Debugging remains disabled.