This is really bugging me (so to speak) . I have been able to attach to the msvsmon.exe process running on the remote server but the "step into" step over" choices never become active. The debugging setup appears ready but I can't do anything. I am trying
to step thru some breakpoints in the page.xaml.cs file.
First, I think we don't support remote Windows debugging for Silverlight.
Second, when remote debugging you should attach to the application being debugged, not msvsmon.exe. msvsmon opens a server to allow you to get process information from the debuggee and should be running, but you want to attach to the actual process. If
it were supported, you would attach to your browser. Unfortunately, since the browser is a native application, and Silverlight runs in mixed mode (native + managed), this scenario is not supported.
Why can't you debug it on your local machine (the one with VS installed)?
If this post has solved your problem, please select 'Mark as answer'
- Jimmy Lewis
Microsoft SDET
Visual Web Developer Team
I think the fundamental problem is my inability to get my head around all the parts of this process and how those parts work together. Let me describe what my structure is in an attempt to answer your question.I
have a VS 2008 solution comprised of a Silverlight 2.0 project and a remote web site project that contains at .xap file and among other pages a testpage.aspx that refers to the .xap.The web project
also contains a .cs file with database connections in the app_code and a .svc service that is linked by a Service Reference in the Silverlight app.All this works as expected. Miraculously. Now
let’s say I want to set a breakpoint in the .cs file in the web project. This .cs file is populating the the Silverlight application text box with some data from a DB. How do I use msvsmon.exe in this case. What process do I attach to on the remote server
where the web application is running.Since the Silverlight files are on my local machine I can put a break point in the page.xaml.cs and almost get there but because the .xap is on the web site it creates
its own .xap and I run into a crossdomain error and can't step thru it.
spinoza
Member
36 Points
15 Posts
Remote Debugging Frustrations
May 20, 2008 01:15 PM | LINK
This is really bugging me (so to speak) . I have been able to attach to the msvsmon.exe process running on the remote server but the "step into" step over" choices never become active. The debugging setup appears ready but I can't do anything. I am trying to step thru some breakpoints in the page.xaml.cs file.
Spin
jamlew
Contributor
3822 Points
549 Posts
Microsoft
Re: Remote Debugging Frustrations
May 21, 2008 01:20 AM | LINK
First, I think we don't support remote Windows debugging for Silverlight.
Second, when remote debugging you should attach to the application being debugged, not msvsmon.exe. msvsmon opens a server to allow you to get process information from the debuggee and should be running, but you want to attach to the actual process. If it were supported, you would attach to your browser. Unfortunately, since the browser is a native application, and Silverlight runs in mixed mode (native + managed), this scenario is not supported.
Why can't you debug it on your local machine (the one with VS installed)?
- Jimmy Lewis
Microsoft SDET
Visual Web Developer Team
spinoza
Member
36 Points
15 Posts
Re: Remote Debugging Frustrations
May 21, 2008 02:22 PM | LINK
Thanks for your help so far
Spin