I built the Roslyn source as described here .
I would like to add a breakpoint in the C # compiler and go through complicating this simple program:
using System; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { var result = 1 + 2; Console.WriteLine(result); } } }
Where should I set a breakpoint? This should be at an early stage of the compilation process, as I would like to go through parsing and even lexing.
If I install CompilerExtension as a launch project and press F5 ("Start Debugging"), a copy of Visual Studio is launched using the newly created compiler. I would like not to start a new instance of Visual Studio every time I would like to go through the compiler. What is a good way to set up a small program that directly calls the compiler code on the above source?
c # roslyn
dharmatech
source share