开发者

Does Glimpse work on actions that return JsonResult?

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.

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 MV开发者_运维问答C routing, execution, binding, trace output, etc. Is that possible?

(I'm using Glimpse v0.81)


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

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.


Normally Glimpse supports AJAX requests but FireBug and Developer tools in Google Chrome seems a better suited tools for inspecting them.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜