g.pickardou
g.pickardou

Reputation: 35873

How to debug Roslyn source generator in VS 2022?

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?

Upvotes: 12

Views: 11743

Answers (0)

Related Questions