Antaris / RazorEngine

Open source templating engine based on Microsoft's Razor parsing engine
http://antaris.github.io/RazorEngine
Other
2.14k stars 577 forks source link

Debugging in RazorEngine in VS 2015 #454

Open AniaDomachowska opened 7 years ago

AniaDomachowska commented 7 years ago

Hi,

After migrating my project to VS 2015 I can't debug razor cshtml files anymore, despite of using LoadedTemplateSource and setting the config.Debug to true. I'm also setting the same file I'm setting breakpoint on in the LoadedTemplateSource.

Do you see any possible cause of this problem?

One more note: I'm also getting design-time errors that say that c# 3 features are not available while editing the file in visual studio, but RazorEngine compiles the template properly. Maybe this issue is connected to the debugging problem.

LorenzoFrediani-Laser commented 7 years ago

to enable debug go on Tools > Debugging > General and enable "Suppress JIT optimization on module load"