开发者

Debug Toolbar for ASP.NET

开发者 https://www.devze.com 2022-12-19 23:44 出处:网络
Is there something akin to the \'Django Debug Toolbar\' for ASP.NET (and more specifically ASP.NET MVC).

Is there something akin to the 'Django Debug Toolbar' for ASP.NET (and more specifically ASP.NET MVC).

It's an HTML page overlay that shows total execution开发者_如何学Go time, SQL queries (and time), what views were called... etc.


I'm a bit late with the answer. The mini profiler does just that. You can see it in action at http://data.stackexchange.com (top left corner).


I use a HttpModule like this one to log request performance information.


Glimpse:

The Diagnostics platform of the web

Providing real time diagnostics & insights to the fingertips of hundreds of thousands of developers daily

Live demo: http://play.getglimpse.com/

Glimpse Heads-Up Display (HUD) is a mini dashboard that pulls out the most important details about a request and displays it at the bottom of your page.

From the HUD, you can dive down into another level of information by clicking on the "G" in the lower right corner. When the Main Panel opens you will be presented with a series of tabs which offer a range of insights into your application.

Core tabs:

  • Ajax
  • History
  • Timeline
  • Trace

ASP.NET tabs:

  • Cache
  • Configuration
  • Environment
  • Request
  • Routes
  • Server
  • Session

ASP.NET MVC specific tabs:

  • Execution
  • Model Binding
  • Metadata
  • Views

EF tabs:

  • SQL


If you are using EF, NH or L2S you can check awesome http://hibernatingrhinos.com/products/UberProf . It'll help you with sql queries and will warn you about some bad practices (select N+1, etc.).
ELMAH may be useful for you too.
And to measure time on server side try checking the time between OnResultExecuting/OnResultExecuted. This is basically the time to actually render the page in HTML.
On client side you can use Firebug extension to Firefox, check Network tab


No, nothing I'm aware of.

If you're using WebForms as your views you can get the name of the rendered view from standard ASP.NET trace (set , then navigate to {approot}/trace.axd). And if you're using SQL Server as your DBMS use Profiler to see queries.

0

精彩评论

暂无评论...
验证码 换一张
取 消