How to view network traffic in Visual Studio
Asked Answered
A

3

22

According to this Blog post there's something called Visual Studio Network Tool in performance & diagnostics, but I can't find it. If I start a new performance profiling session, I have all sorts of tools (CPU, Memory) but no Network. Tried in both Visual Studio 2015 and 2017.

Aaronaaronic answered 17/1, 2017 at 7:19 Comment(0)
L
6

To access the Network tool, open the Diagnostics Tools window in Visual Studio 2015 and on the Debug menu, select Start Diagnostic Tools without Debugging (or just press Alt+F2).

enter image description here

On the diagnostics page, select the Analysis Target (your startup project is preselected as the analysis target but you can choose to target an installed or running app instead), then select Network and press Start. Alternatively, since the tool is part of the Performance and Diagnostics hub, you can also select additional tools in order to run a combined session.

enter image description here

You can find more information here https://blogs.msdn.microsoft.com/visualstudio/2015/05/04/introducing-visual-studios-network-tool/

Lancelot answered 19/2, 2018 at 8:16 Comment(6)
Since I wrote this question I stopped using 2015, however I fired it up just to test this and i didn't even see the "Start Diagnostic Tools Without Debugging..." menu item. Did this tool carry over to 2017? If so, why isn't there a checkbox for network in the diagnostic tools panel, only CPU and memory? This is true for both 2015 and 2017.Aaronaaronic
Hmm..I'm surprised. I see that menu item in my VS 2015. I just opened up 2017 and it looks like the same menu items and the tools including 'Network' are carried over.Lancelot
In 2017 you can access this window by going to Debug > Performance Profiler... also alt + F2 still worksGenerate
moreover, the "Network" checkbox along with all checkbox remains are disabled. what to do then to packet capture.Cienfuegos
This seems to have disappeared in VS2019? :(Vitrescence
@MichaelHawker-MSFT, unfortunately, yes. Answer on Github says: The version selector indicates it's VS 2017 only. There's a banner comment when you switch to the VS 2019 view. This tool isn't available in VS 2019.Gassy
G
6

Network profiling is not available in VS 2022. Debug > Performance Profiler or Alt + F2 will give some options like .Net Async, Memory Usage ..

enter image description here

Installing Fiddler will be an option. (Although not what OP asked)

Gailey answered 7/6, 2022 at 11:34 Comment(2)
Doesn't Events Viewer here show http requests?Paraphernalia
@LukeMiller We can use Event Viewer, but Fiddler have too many options to filter requestsGailey
G
0

You can try using any HTTPs Debugging Proxy like WireShark, CharlesProxy or Requestly.

This might help - https://requestly.io/blog/comparing-charles-proxy-fiddler-wireshark

Gym answered 27/7, 2023 at 10:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.