When this happens, like the error says it typically means "no symbols were loaded for this document". For breakpoints to work, the source code must match the built EXE/DLL and PDB in the running process. This can fail if

  • you've made an edit to the source code since you've built
  • the EXE/DLL in the process you're debugging is not the same version as the one corresponding to the code (e.g. stale copy from a prior build)
  • the PDB is not getting deployed alongside the EXE/DLL (or there is a stale copy there)

Often the best way to rectify this is to completely delete all copies of Foo.exe/Foo.dll/Foo.pdb on the box (check if any are in the GAC, too), rebuild (and deploy), and then reattach the debugger. That said, it's possible there's something wrong in the product tooling, but most of the time this should solve it.

By on 5/23/2009 10:26 AM ()

I deleted all bin/obj folders, tried to clear VS cache and the breakpoints still don't work. I use VS integrated web server, so my deployment process reduces to pressing F5. I also use automaticly generated test page for SL.
However I discovered, that I'm not able to hit breakpoint not just in our project, but also in simple SL app with one F# dll.
And the problem with breakpoints occurs also on machines of my team mates, so it's not just corrupted installation (i tried it also on clean installation of win xp).

By on 5/26/2009 11:51 AM ()

Hi jaruch,

this is a known problem in our Silverlight support. Unfortunately there is no workaround. We hope to fix it in our next release.

By on 5/26/2009 8:44 PM ()

Bad news for me...
When will the next release be out?
Or is there any chance that some hotfix will be available soon? Becasue this problem makes SL development in F# very painful.

By on 5/28/2009 3:45 AM ()

Hm... that silence means no?
Is this problem also in VS 2010? If it's worth switching...

By on 6/6/2009 11:46 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper