1
votes

I have a WPF application with a WebBrowser Control. The WebBrowser loads a page with a Silverlight application. Is it possible to debug both applications together? How do I have to start the Silverlight application?

Edit: If I start the Silverlight solution, I can debug the code "in the Browser-Window". If I start the WPF solution I can debug the WPF Part but I can not debug the Silverlight in the "WPF-Window" - the code works but the breakpoints are ignored.

1

1 Answers

0
votes

You can debug both applications - the WPF WebBrowser control just needs to be pointed to localhost (via Webbrowser.Navigate) so you can easily attach to the SL app host process (IIS, IIS Express, etc. - or enable remote debugging support on your web server hosting the XAP). For WPF, just use F5 to auto-attach it.