Silverlight: Debug Out Of Browser application

Why would you need to debug Silverlight applications running out of the browser? One reason is to test applications that use Elevated Trust. Let us see how simple it is to debug applications running out of the browser.

Right click the project in Solution Explorer > Properties > Silverlight tab. Make sure the ‘Enable running application out of the browser’ is checked

image

If you go to the Debug tab, you will observe that the ‘Out-of-browser application’ radio is already selected for you

image

That’s it. Set a breakpoint, run the application and step through the code.

image






About The Author

Suprotim Agarwal
Suprotim Agarwal, Developer Technologies MVP (Microsoft Most Valuable Professional) is the founder and contributor for DevCurry, DotNetCurry and SQLServerCurry. He is the Chief Editor of a Developer Magazine called DNC Magazine. He has also authored two Books - 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook.

Follow him on twitter @suprotimagarwal.

No comments: