2017-10-09 46 views
1

我已經安裝了快照調試程序包,並對applicationinsight.config進行了更改。但是當我看到異常時顯示Collect調試快照。打開調試快照鏈接不可見?

+0

我們需要更多關於您究竟在做什麼以及您期望如何幫助您的信息。 –

+0

當我點擊應用程序見解中的失敗選項卡中的異常。我正在收集調試快照鏈接而不是打開調試快照鏈接。 –

回答

1

我也面臨這個問題。緊接着這個鏈接安裝https://docs.microsoft.com/en-us/azure/application-insights/app-insights-snapshot-debugger。但在Azure門戶中,未顯示「打開調試快照」。只顯示「收集快照」,並點擊此鏈接重定向到上面提到的網址。

+0

這不是問題的答案。 – samiles

+0

可以提供解決方案嗎? –

+0

你有沒有檢查你是否具有「Application Insights Snapshot Debugger」的權限? – DotnetDev

1

管理通過以下步驟來得到這個工作:

  1. 安裝在您的網站SnapshotCollector NuGet包https://www.nuget.org/packages/Microsoft.ApplicationInsights.SnapshotCollector
  2. (IMP)(配置可以在這篇文章的末尾找到) - 發佈中調試模式,確保了PDB文件部署(您可以從「預覽」選項選中)

<Add Type="Microsoft.ApplicationInsights.SnapshotCollector.SnapshotCollectorTelemetryProcessor, Microsoft.ApplicationInsights.SnapshotCollector"> 
 
     <!-- The default is true, but you can disable Snapshot Debugging by setting it to false --> 
 
     <IsEnabled>true</IsEnabled> 
 
     <!-- Snapshot Debugging is usually disabled in developer mode, but you can enable it by setting this to true. --> 
 
     <!-- DeveloperMode is a property on the active TelemetryChannel. --> 
 
     <IsEnabledInDeveloperMode>true</IsEnabledInDeveloperMode> 
 
     <!-- How many times we need to see an exception before we ask for snapshots. --> 
 
     <ThresholdForSnapshotting>1</ThresholdForSnapshotting> 
 
     <!-- The maximum number of snapshots we collect for a single problem. --> 
 
     <MaximumSnapshotsRequired>3</MaximumSnapshotsRequired> 
 
     <!-- The maximum number of problems that we can be tracking at any time. --> 
 
     <MaximumCollectionPlanSize>50</MaximumCollectionPlanSize> 
 
     <!-- How often to reset problem counters. --> 
 
     <ProblemCounterResetInterval>24:00:00</ProblemCounterResetInterval> 
 
     <!-- The maximum number of snapshots allowed per day. --> 
 
     <SnapshotsPerDayLimit>30</SnapshotsPerDayLimit> 
 
     <!--Whether or not to collect snapshot in low IO priority thread.--> 
 
     <SnapshotInLowPriorityThread>true</SnapshotInLowPriorityThread> 
 
    </Add>