10 Steps to Debug Silverlight Out-of-Browser Applications without Attaching
The common technique many developers use to debug Silverlight Out of Browser applications is to attach the debugger to the SLLauncher.exe process. However, there is a another way to debug installed OoB apps. Attaching to the process does not allow you to catch and debug any startup code however this technique below does allow you to do so.
If you are running a Silverlight 4 beta application hosted in a web project, here are the steps to debug when in OoB mode.
- Set the Web project that hosts the Silverlight application as the startup project in the solution
- Run (press F5)
- Close the OoB application and stop debugging
- Set the Silverlight application as the startup project in the solution
- Set the Start Action to “Installed out-of-browser application”
- Save all files in the project
- Press F5 and now you are debugging the OoB application!