Skip to content

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

@IanKemp

Description

@IanKemp

Visual Studio Version

2022.17.11.4 (Community edition)

Summary

As title.

Suspect that the work done in dotnet/roslyn-sdk#896 for dotnet/roslyn-sdk#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature-DebuggingLaunching an application via F5, setting debug properties and launch profiles.Triage-ApprovedReviewed and prioritized

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions