I am working on various asp.net/.net core web projects that exchange data with different production APIs, some of them being rather complex. These APIs are not under my control and they communicate only using HTTPS. For debugging, I would like to see the complete requests and responses that my projects exchange with the APIs.
Obviously in VS 2017 there used to be a network debugging option which does not seem to be available in VS 2019. I tried to use the "Events viewer" debugging tool, attached it to the devenv process but when starting VS presents me an error message "The collection session cannot be launched because another one is currently active" so I guess this is the Diagnostic Tool which usually is running when debugging. There is no "Network" option available even though it claims to show HTTP requests.
Generally, when debugging HTTPS traffic I am using Wireshark with the browser's pre-mastered keys (similar to what is described here). However, this communication is not initiated by a browser but rather by my C# code running on Visual Studio's local IIS instance, so I wonder if there is another option to maybe get the encryption keys from VS to be exported so they can be used with Wireshark?
Any other suggestions are welcome. Switching to HTTP unfortunately is not an option here for reasons mentioned above.