Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I Debug a SingleFileGenerator/ Custom Tool?

I am building a Custom Tool code generator using the Visual Studio SDK and basing it on the SingleFileGenerator example.

My question is how to enter debug mode on this code? I can currently add my custom tool to a file in Visual Studio but it errors out, I'd like to be able to debug this code if possible.

like image 973
Jeff Martin Avatar asked Feb 28 '23 13:02

Jeff Martin


1 Answers

You need to debug Visual Studio, you can either do it by attaching to a running session (Tools\Attach To Process) or by setting Visual Studio (devenv.exe) to be your startup project of the Custom Tool Project.

like image 116
Shay Erlichmen Avatar answered Mar 12 '23 11:03

Shay Erlichmen