使用Glimpse远程调试用户问题

时间:2016-05-10 20:46:46

标签: c# asp.net-mvc-4 glimpse

我想在远程服务器上使用Glimpse来帮助客户离开现场。我已经查看了Glimpse Doc以了解更多信息,但我找不到任何关于此的代码库。

我已经阅读了关于这个主题的Glimpse Doc,但我只能看到我的使用情况并致电我从当地请求它。如何在我的Glimpse窗口中显示其他用户的使用信息?
文件信息: http://getglimpse.com/Docs/History-Tab

<。>在Web.config中

    <glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Debug.axd">
    <inspectors> 
    <ignoredTypes> 
      <add type="Glimpse.Mvc.Inspector.DependencyInjectionInspector, Glimpse.Mvc4" /> 
    </ignoredTypes> 
  </inspectors>
      <runtimePolicies>
      <ignoredTypes>
        <add type="Glimpse.AspNet.Policy.LocalPolicy, Glimpse.AspNet"/>
      </ignoredTypes>
    </runtimePolicies>
      <!-- 
          For more information on how to configure Glimpse, please visit http://getglimpse.com/Help/Configuration
          or access {your site}/Glimpse.axd for even more details and a Configuration Tool to support you. 
      -->
    </glimpse>
    <location path="Debug.axd">
    <system.web>
      <authorization>
        <allow roles="Admin"/>
        <deny users="*"/>
      </authorization>
    </system.web>
  </location>
自定义“GlimpseSecurityPolicy.cs”

中的

    public RuntimePolicy Execute(IRuntimePolicyContext policyContext)
    {
        return RuntimePolicy.On;
    }
    public RuntimeEvent ExecuteOn
    {
        // The RuntimeEvent.ExecuteResource is only needed in case you create a security policy
        // Have a look at http://blog.getglimpse.com/2013/12/09/protect-glimpse-axd-with-your-custom-runtime-policy/ for more details
        //RuntimeEvent.EndRequest | 
        get { return RuntimeEvent.EndRequest | RuntimeEvent.ExecuteResource; }
    }
    public RuntimeEvent ExecuteOff
    {
        get { return RuntimeEvent.EndRequest; }
    }

0 个答案:

没有答案