Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit and Continue in Silverlight?

Edit-And-Continue is one of my favorite debugging tools which I have previously used on C# based Winforms and ASP.NET projects. However, I'm running a Silverlight 3.0 application on VS 2008 and whenever I try to make a change (after breaking) it says "Changes are not allowed when debugging Silverlight applications". Also there isn't an "Enable Edit and Continue" option in the project settings.

Does anyone (possibly an insider) know when this feature will be supported by Microsoft??? (I NEED IT!)

like image 555
Shnitzel Avatar asked Dec 11 '09 01:12

Shnitzel


People also ask

How do I turn off break mode in Visual Studio?

There is a free extension to resolve this issue: Disable No Source Available Tab available for from the VS Market Place. This small extension will prevent the tool window with title "No Source Available" from appearing in Visual Studio, and preserve the focus on the currently active tab.

How do I enable debugging in Visual Studio?

In the Visual Studio toolbar, make sure the configuration is set to Debug. To start debugging, select the profile name in the toolbar, such as <project profile name>, IIS Express, or <IIS profile name> in the toolbar, select Start Debugging from the Debug menu, or press F5.

How do I stop debugging in VS code?

VS Code maintains a debug session while the program is running, and pressing the Stop button terminates the program. Tip: The Run action is always available, but not all debugger extensions support 'Run'.


1 Answers

I doubt it will ever be a feature, to be honest. EAC has always required you to attach directly to your .exe in order to work. In the case of Silverlight, that .exe is the browser, which is not the .exe you are developing.

If you are looking to edit XAML while running, you might consider a dynamic loading situation where you can refresh the control at runtime. In that case, you can edit XAML while debugging, but I'm afraid you're stuck with the managed code.

EDIT: One possibility that you might consider (but I haven't tried it) is to write your code against unit tests. Then, there is a tool called TestDriven.net that allows you to debug your tests with EAC (as an advanced feature). From there, you might be able to do some EAC, but you will be doing it via unit tests, not actually in the Silverlight environment.

like image 170
Brian Genisio Avatar answered Oct 20 '22 01:10

Brian Genisio