How can I debug the ISourceGenerator code during the build process with vscode? Examples on the net use Debugger.Launch() but this only works in Visual Studio.
[Generator]
public class HelloWorldGenerator : ISourceGenerator
{
public void Execute(GeneratorExecutionContext context)
{
}
public void Initialize(GeneratorInitializationContext context)
{
if (!Debugger.IsAttached)
{
// how to make it break here?
Debugger.Launch();
}
}
}
