Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to capture Visual Studio Code traffic through Fiddler?

How can we capture VS Code traffic through Fiddler? I ran my Fiddler and seems working fine. It could capture browsers' traffic but not VS Code traffic. I really appreciate if anyone can give me the solution for that.

Thanks

like image 880
PouyanParyas Avatar asked Jul 27 '19 00:07

PouyanParyas


People also ask

How do I capture HTTPS request in Fiddler?

Configure Fiddler Classic Click Tools > Options. Click the HTTPS tab. Ensure the Decrypt HTTPS traffic checkbox is checked. Click the Export Fiddler Root Certificate to Desktop button.

Why is Fiddler not capturing traffic?

It seems to be due to a proxy setting, where for the loopback address no proxy is being used, which makes Fiddler unable to inspect the traffic. I've temporarily solved this by only requesting from 127.0. 0.1, or changing my hosts file to use another alias other than "localhost".


1 Answers

Assuming that you are using some REST client plugin and want to capture the traffic, This worked for me:

  1. In VS Code, go to File -> Preferences -> Settings
  2. In the settings Search field, type in "proxy"
  3. Set the "Http: Proxy" setting to "http://localhost:8888"
like image 60
Johan Franzén Avatar answered Sep 18 '22 02:09

Johan Franzén