简体   繁体   English

如何查看ASP.Net MVC中调用的每个控制器和操作方法?

[英]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.

相关问题 每次回发都会调用ASP.NET MVC索引操作 - ASP.NET MVC Index action gets called every postback 向ASP.NET MVC控制器中的操作方法发出HttpPost请求 - Make HttpPost request to an action method in an ASP.NET MVC controller 将接口传递给ASP.NET MVC Controller Action方法 - Passing an interface to an ASP.NET MVC Controller Action method ASP.NET MVC RemoteAttribute不会在控制器中触发操作方法 - ASP.NET MVC RemoteAttribute does not trigger action method in controller 在asp.net mvc3中如何在不指定动作和控制器的情况下调用方法? - How to call a method without specifying action and controller in asp.net mvc3? 如何从 ASP.NET 5 MVC 6 控制器操作返回 Javascript - How to return Javascript from an ASP.NET 5 MVC 6 controller action asp.net mvc如何将视图与控制器动作联系起来? - how does asp.net mvc relate a view to a controller action? ASP.NET MVC 2-如何为单个控制器操作覆盖注释? - ASP.NET MVC 2 - How to override an annotation for a single controller action? 如何在 Asp.net MVC 中使用 Ajax 命中控制器动作? - How To Hit Controller Action Using Ajax In Asp.net MVC? 如何在ASP.net MVC 5中限制对控制器操作的访问 - How to restrict access of controller action in ASP.net MVC 5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM