dotnet / project-system

The .NET Project System for Visual Studio
MIT License
971 stars 389 forks source link

Remote Debugging of a .net core project that points to an .NET 4.8 executable doesn't work #6286

Open TFTomSun opened 4 years ago

TFTomSun commented 4 years ago

Visual Studio Version: 2019 latest Summary:

Expected Behavior:

There seems to be an assumption that the custom debugging executable of a .NET core project must be a .net core application, too.

jjmew commented 4 years ago

This is not a project system issue. We will suggest you to open a feedback ticket using Visual Studio. You can do that by opening Visual Studio, selecting Help, and Send Feedback.

davkean commented 4 years ago

@jjmew Reopening this, we control this via https://github.com/dotnet/project-system/blob/master/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Debug/ProjectLaunchTargetsProvider.cs#L603.

We should let you control this via the properties page, instead of sniffing the target framework of the library you are F5'ing.

davkean commented 4 years ago

ie We would expose the full set of options here:

image

tmeschter commented 2 years ago

Seems like this is a matter of:

  1. Updating the launch profile UI for the "Executable" debug target to allow you to select a debugger engine and store that preference in the launch profile.
  2. Updating the handler for the "Executable" debug target to vary the debug engine based on the setting in the launch profile.

Hardest part might be reconciling that user-controlled setting with all the other logic we have for choosing the debugger engine.