views:

88

answers:

3

hi guys,

My VS2010 doesn't stop at breakpoints inside of silverlight application. It appears that no symbols for it have been loaded during debugging. When I hover over the break point it says "The braekpoint will not currently be hit, no symbols have been loaded".

I have tried all of possible solutions offered by google and have no success. The problem occurs even when I create brand new silverlight app hosted by an ASP .NET web project. All of my project configuration looks fine - silverlight debugging is enabled in the Web project.

I am using silverlight 4. here a link to the sample project created out from the tepmlate.

Any thoughts ?

P.S I just tried to reinstall VS2010 and the problem still exists.

EDIT: I just tested the same project on another machine and it stops at the break point it seams that the problem is somewhere in the configuration of VS or silverlight.

with Matt Dotson's help I managed to attach the debugger manually. However this solution is not good enough for daily use.

+1  A: 

If that doesn't work, then

  • reset iis (if you are debugging in that)
  • delete temporary asp.net files (%SystemRoot%\Microsoft.NET\Framework\versionNumber\Temporary ASP.NET Files)
  • clean and rebuild your solution
Matt Dotson
I have done all of that - it doesn't help.I'm using the development server of the VS so I don't have IIS to reset.
Koynov
did you attach to the process running silverlight, or just hit F5?
Matt Dotson
I am just using F5.
Koynov
Try CTRL+ALT+P and attaching to the IE process that has SL in it.
Matt Dotson
Ctrl+Alt+P work - 10x a lot. But that is no good enough solution for daily use.
Koynov
+2  A: 

What broswer are you using? You need to be using Internet Explorer to debug silverlight projects.

@donal its not true at all I use firefox to debug Sl projects.
Malcolm
@Malcolm: With the new Firefox 3.6.4 and above i´m not able to debug any silverlight project. This version hosts silverlight in a special container for execution.
Jehof
@Jehof didn't knew about that. Tx for the info. As i am still on Firefox 3.5
Malcolm
@Jehof there's a workaround for it here :http://forums.silverlight.net/forums/t/188434.aspx
Malcolm
http://johan.driessen.se/archive/2010/04/23/debugging-silverlight-needs-ie.aspx
I have successfully debugged using FF so far. I have that debugging problem also with IE and Chrome.
Koynov
A: 

The resolution came after 2 days of headbanging. It appears that the link which Malcolm gave covers exactly my problem but my I was narrow-minded enough not to pay it enough attention because when I run the debugger as long with the app my default browser was FF. So I thought that after the FF starts I can load the page from IE or Chrome.

Actually the problem is that the debugger cannot be attached to the silverlight project because of the FF. And when I load the app from IE or Chrome the debugger dis still not attached.

Thanks to everyone that tried to help.

Koynov