是否对掠影返回JsonResult行动工作? [英] Does Glimpse work on actions that return JsonResult?

查看:119
本文介绍了是否对掠影返回JsonResult行动工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,其中最繁重的任务在每个返回JsonResult动作。他们从一个简单的观点叫的jQuery。

I've got an app where most of the heavy lifting is in actions that each return a JsonResult. They're called by jQuery from a simple view.

该请求在掠影阿贾克斯选项卡上显示,但每个请求完成后它就会通过得分和灰色。我想检查每个那些Ajax请求的,看看他们的一瞥信息 - MVC的路由,执行力,约束力,跟踪输出等,这是可能的。

The requests show up in the Ajax tab in Glimpse, but as each request completes it gets scored through and greyed out. I'd like to inspect each of those ajax requests and see the Glimpse information for them -- the MVC routing, execution, binding, trace output, etc. Is that possible?

(我使用掠影v0.81)

(I'm using Glimpse v0.81)

推荐答案

默认情况下掠影数据仅用于某些内容类型产生的。 (文/ HTML)

By default Glimpse data is only generated for certain content types. (text/html)

在你的web.config的部分,您可以添加应用程序/ JSON(或任何内容类型,你正在返回),并管窥将开始提供所有你正在寻找服务器的元数据。

In the section of your web.config you can add application/json (or whatever content type you are returning) and Glimpse will begin to provide all of the server metadata you are looking for.

这篇关于是否对掠影返回JsonResult行动工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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