Sukhminder Singh
Sukhminder Singh

Reputation: 157

How silverlight code gets debugged

As an .xap file is added in the web project which runs at client side, then can anyone please explain how are we able to debug the silverlight client side code?

Upvotes: 2

Views: 143

Answers (2)

ChrisF
ChrisF

Reputation: 137188

If you are running the web server built into Visual Studio then Visual Studio is both hosting the web server and running the web client. This means you are able to debug both the client and server side code.

If you are using IIS to serve the site then you are still running the web client within Visual Studio.

As long has you have the "Debuggers" option set on the web project you will be able to set break points and step through the code.

Upvotes: 3

Rishabh
Rishabh

Reputation: 3852

In the web project properties, under ‘web’ tab all way at the bottom, there is a group called ‘Debuggers’, make sure you have Silverlight check box is checked. By checking the Silverlight check box you will be able to debug the client side code.

Upvotes: 0

Related Questions