Just a short post.
The other day I was having some trouble debugging the start up of a Silverlight 3 OOB application. The problem was well and truly gone before I could attach to the application from Visual Studio.
If you didn’t realise, you can attach VS to your OOB app by attaching to the appropriate sllauncher.exe instance.
As stated though, you will miss out on any start up problems you are trying to debug.
My (hacky) work around was to wack this in my start up code… I wacked it in MainPage.xaml.cs, but I can’t see any reason this won’t work in App.xaml.cs:
while (!Debugger.IsAttached)
{
Thread.Sleep(100);
}
This code will basically hang the app until you attach your debugger! Just make sure you don’t let this one in to production
Posted by Jordan 