[英]How to see every controller & action method called in ASP.Net MVC?
I have been working on many projects developed in ASP.Net MVC by someone else. 我一直在从事其他人在ASP.Net MVC中开发的许多项目。 A lot of time I want to see which controllers & actions were called during a page load while debugging something.
很多时候,我想查看在调试某些页面时在页面加载期间调用了哪些控制器和动作。 Normally I would just set a breakpoint in the controller and then go from there to the views to see if it contains any RenderAction / RenderPartial methods etc. and then set a breakpoint there also.
通常,我只是在控制器中设置一个断点,然后从那里转到视图以查看它是否包含任何RenderAction / RenderPartial方法等,然后在此位置也设置一个断点。 What I am interested in finding out is if there is any tool or way that can show me all the controllers and actions that were called.
我感兴趣的是,是否有任何工具或方式可以向我展示所有被调用的控制器和动作。 Ideally I would want to click on some hyper link or just do a page refresh and see a list of each controller & action that was called in sequence.
理想情况下,我想单击某些超级链接,或者只是刷新页面并查看依次调用的每个控制器和操作的列表。 This would be awesome in debugging!
这在调试中很棒!
You could use Glimpse , this is an open source to diagnostics platform for web. 您可以使用Glimpse ,这是Web诊断平台的开源。
URL: http://getglimpse.com/ 网址: http : //getglimpse.com/
Extensions for MVC and Web forms: http://getglimpse.com/Extensions/ MVC和Web表单的扩展: http : //getglimpse.com/Extensions/
Documentation: http://getglimpse.com/Docs/ 文档: http : //getglimpse.com/Docs/
Hope this will help. 希望这会有所帮助。
您还可以检查Fiddler Web调试器开源
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.