If you want to debug your Javascript code using Visual Studio in a Silverlight application you have to uncheck the ‘Silverlight’ checkbox under your website ‘Propertie’s section. You cannot debug both at the same time according to msdn.