Enable Debugging in Silverlight Applications

If you ever wonder why the breakpoints in your Silverlight application are never hit, it is simply because you have not enabled debugging for it. The following steps describe how you can enable debugging for your Silverlight apps.

From the Solution Explorer, select the web project that hosts your Silverlight XAP files, and then Double-click on the Properties icon (see screenshot below) in the project.

Debugging

This will bring up the Properties page for you web project. Now all you need to do is click on the Web tab, scroll to the bottom of the tab page, and ensure that the Silverlight checkbox is ticked.

Debugging2

It’s that simple! Now you can litter your code with breakpoints and they will surely get hit where necessary.

Advertisement
Leave a comment

1 Comment

  1. Stuart

     /  June 12, 2010

    Wow, nice tip. Thanks.

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.