How to debug ASP.NET MVC Controller after it transfers View control?

About every 20 pages load, I get a failure in my view. I would like to know what values ​​the variables have in my controller before it calls View. However, after calling the view, I lose all the local variables from the controller. Is there any hope?

+3
source share
4 answers

Use the ModelVisualizer helper in mvc.contrib It maps all values ​​to a view.

+3
source

In the “Make Object ID” viewport , the function allows you to look at variables that are not included in the volume.

+2

, / , .

+1

, - , ? . .

, Controller, , , , (, Flash) ..

+1

Source: https://habr.com/ru/post/1720116/


All Articles