I am trying to debug a MVC widget in sitefinity 8 but the debugger doesn't hit the breakpoint. The widget works but I cannot debug it. What is wrong? It seems like sitefinity compiles the widget first then renders the compiled one at run time. Am I right? How can I get to breakpoint?
Edit:
The debugger actually hit the breakpoint if the code is inside controller. But I cannot debug into view's (cshtml file) code.
Sitefinity is caching your views. If you want to debug the view, make sure to let the breakpoint hit it the very first time.