怎么看每个控制器&放大器;所谓在ASP.Net MVC的操作方法? [英] How to see every controller & action method called in ASP.Net MVC?

查看:113
本文介绍了怎么看每个控制器&放大器;所谓在ASP.Net MVC的操作方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直对别人在ASP.Net MVC开发了许多项目。很多时候我想看到哪些控制器和放大器;在调试一些行动是网页加载过程中调用。通常情况下,我只想设置一个断点在控制器中,然后从那里来的意见,看它是否包含任何的RenderAction /的RenderPartial方法等,然后设置一个断点,也有。如果有任何工具或方式,可以告诉我一切所调用的控制器和动作是什么,我想找出是。理想的情况下我会想点击某些超链接或只是做一个刷新页面,看到每个控制器和放大器的列表;被称为序列操作。这将是在调试真棒!

I have been working on many projects developed in ASP.Net MVC by someone else. 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. 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.

网址: http://getglimpse.com/

对MVC和Web表单扩展: http://getglimpse.com/Extensions/

文件: http://getglimpse.com/Docs/

希望这会有所帮助。

这篇关于怎么看每个控制器&放大器;所谓在ASP.Net MVC的操作方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆