Open tmeschter opened 4 years ago
allow the user to enable the JavaScript debug engine when debugging a WinForms/WPF/WinUI app that includes a WebView2
I'm interested in being such a user. It looks like this is partially completed, because I see the property page UI changes in Visual Studio:
Is this scenario supported now?
We need to make a series of changes to the project system to allow the user to enable the JavaScript debug engine when debugging a WinForms/WPF/WinUI app that includes a WebView2 control. There are three distinct pieces of work:
ILaunchProfile
. SeeLaunchProfileExtensions.IsNativeDebuggingEnabled
andLaunchProfileExtensions.IsSqlDebuggingEnabled
for examples of how those settings are read.ProjectLaunchTargetsProvider
to add the appropriate debug engine for WebView2 debugging. Again, see how the native and SQL debugging engines are enabled. Also, I believe the "web root" setting needs to be translated into an additional environment variable. Follow up with the JavaScript tooling team to get the details about that.There are a couple of additional things we could do but are not necessary: