visual studio 2015 vshub is spamming fiddler

前端 未结 8 2083
慢半拍i
慢半拍i 2020-12-12 10:56

I have read: How do I disable VsHub.exe in the system tray? and https://connect.microsoft.com/VisualStudio/feedback/details/1919828/hundreds-of-calls-second-to-vshub-and-bro

8条回答
  •  难免孤独
    2020-12-12 11:23

    SpokaneDJ's answer was very helpful for me and worked great, but I don't spend a lot of time with Fiddler so it took me a minute to remember how to do this! Here are the specific instructions.


    First, within the Fiddler UI, go to Rules > Customize Rules. Search for the OnBeforeResponse function. It should look like this:

    static function OnBeforeResponse(oSession: Session) {
      if (m_Hide304s && oSession.responseCode == 304) {
        oSession["ui-hide"] = "true";
      }
    }
    

    Now add the following if block after the existing one (substituting your vshub host/port if different):

        if (oSession.HostnameIs("localhost:49155")){
          oSession["ui-hide"] = "hiding vshub"; // String value not important
        }
    

    Your OnBeforeResponse function should now look like this:

      static function OnBeforeResponse(oSession: Session) {
        if (m_Hide304s && oSession.responseCode == 304) {
            oSession["ui-hide"] = "true";
        }
    
        if (oSession.HostnameIs("localhost:49155")){
            oSession["ui-hide"] = "hiding vshub"; // String value not important
        }
      }
    

提交回复
热议问题