掠影和RedirectToAction [英] Glimpse and RedirectToAction

查看:129
本文介绍了掠影和RedirectToAction的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图按照<一个href=\"http://www.hanselman.com/blog/NuGetPackageOfTheWeek5DebuggingASPNETMVCApplicationsWithGlimpse.aspx\"相对=nofollow>斯科特Hanselman的例子的使用窥跟踪一个ASP.NET MVC 3应用程序。

I am trying to follow Scott Hanselman's example on using glimpse to trace an ASP.NET MVC 3 application.

Public Function SomeAction(id As Integer) As ActionResult
    Dim traceid = Guid.NewGuid.ToString

    Trace.TraceInformation(traceid & " " & 
        DateTime.Now.ToString("HH:mm:ss:fffffff") & " action start")

    ...

    Trace.TraceInformation(traceid & " " & 
        DateTime.Now.ToString("HH:mm:ss:fffffff") & " some other traces")

    Return RedirectToAction("AnotherAction", New With {.id = id})
End Function

正如你所看到的,在我的情况,在函数结束时,我重定向到另一个动作,并在AnotherAction,窥不显示在SomeAction我写的痕迹。

As you can see, in my case, at the end of the function, I redirect to another action and in "AnotherAction", glimpse doesn't show the traces that I have written during "SomeAction".

是否有可能看到我写的动作痕迹与前一瞥重定向?

Is it possible to see the traces that I wrote to the action before redirect with glimpse?

BTW一睹v.0.82

BTW glimpse v.0.82

推荐答案

恩迪,

您可以查看过去使用一瞥的远程选项卡的请求。

You can view past requests using Glimpse's remote tab.

点击远程选项卡,并选择右边的启动链接。那么这将显示您随着时间的推移,从该客户端的请求的列表。

Click the remote tab, and select the "Launch" link on the right. This will then show you the list of requests made from that client over time.

从清单,那么你可以点击启动链接给定的请求查看所有的掠影信息(包括伐木)为过去的请求。这在一瞥通过改变URL变化和字符串注意到(远程)示出了在左上角/状态区。

From that listing you can then click the "Launch" link for a given request to view all of the Glimpse information (including logging) for that past request. This is noted in Glimpse by changing URL changing and the string "(Remote)" showing up in the top left corner/status area.

我们一直在我们的文档,并且要提供有关此选项卡很快更多的信息。

We have been working on our documentation and there should be more information available about this tab very soon.

这篇关于掠影和RedirectToAction的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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