How to debug Roslyn source generator in VS 2022?

Viewed 1589

Context

I was able to debug my source generator in VS 2019 by setting the project properties/debug Launch to Roslyn Component, then the target project combo to one of my consuming project:

enter image description here enter image description here

Now this feature seems to be missing in VS 2022, I can not create a launch profile using the Launch Profile UI with similar settings.

Question

How can I debug Roslyn source generator in Visual Studio 2022?

1 Answers
Related