How to Set Breakpoint in a Silverlight Plugin(Dynamically Loaded) Assembly?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Qu

    #1

    How to Set Breakpoint in a Silverlight Plugin(Dynamically Loaded) Assembly?

    Dear All,
    I am writing a Silverlight plugin assembly that is dynamically loaded by a website which is out of my control. It appears that I cannot set breakpoint within my DLL code. Please help me if some body knows the solution. I have read a few thread on this site and tried a few solutions, but still cannot get it to work.

    I am using VS2008. The assembly is coded in C#. The project is created as a Silverlight assembly(DLL) and placed in a Visual Studio solution containing the DLL only. On the property page of the DLL project, I do not see the normal "debug" settings where you can specify the startup program. On teh [Debug] menu, both "Start debugging" and "Start without debugging" are grayed. The only option is to run the web site that loads the assembly. The I use "Attach to process..." and select IEXPLORER.exe with type "Script, Silverlight, x86". But when I set a breakpoint, it is always grayed. When I check the "Modules" tab, all modules have no symbols loaded.

    I hope I have provided enough information and looking forward to a solution. Thanks in advance for any help.
  • Andrew Qu

    #2
    Thanks to all viewed. After some discussion with my XAP application supplier, I now got a solution and a simple solution. Basically, I just add the web site to my solution as an existing "Web Site" project. That means, my solution contains both the main web site and my Silverlight Assembly project. Of course, I need to enable "Silverligh t Debugging" in the "Web Site" project.

    Comment

    Working...