project-system icon indicating copy to clipboard operation
project-system copied to clipboard

Unable to debug source generator: "The project doesn't know how to run the profile '<name>' with command 'DebugRoslynComponent'"

Open IanKemp opened this issue 1 year ago • 7 comments

Visual Studio Version

2022.17.11.4 (Community edition)

Summary

As title.

Suspect that the work done in https://github.com/dotnet/roslyn-sdk/pull/896 for https://github.com/dotnet/roslyn-sdk/issues/850 has either been reverted or broken.

Steps to Reproduce

  1. Clone https://github.com/riok/mapperly
  2. Attempt to debug source generator in Visual Studio by following https://mapperly.riok.app/docs/contributing/debugging/#integration-tests
  3. Get error image

Creating a new "Roslyn Component" launch profile is also not possible, as that option is missing from the "Launch Profiles" UI image

Expected Behavior

Source generator debugging works

Actual Behavior

Source generator debugging does not work

User Impact

Can't debug source generators

IanKemp avatar Oct 05 '24 13:10 IanKemp