문제

Some ajax request or full get requests results in HTTP error. I can not see those failed requests Ajax and History tabs on Glimpse. I am expecting to see those requests. Is this expected behavior ? If not what can be problem about this ?

도움이 되었습니까?

해결책

By default, Glimpse only responds to certain status codes (200, maybe a few others). If you want to have it respond to errors or some of the typical REST responses (201, 202, 204, etc), you'll have to whitelist them in your web.config...

<glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd">
    <runtimePolicies>
      <statusCodes>
        <add statusCode="201"/>
        <add statusCode="404"/>
        <add statusCode="500"/>
      </statusCodes>
    </runtimePolicies>
</glimpse>

There's a small bit in the docs that talks about this... http://getglimpse.com/Help/Configuration

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top