Search code examples
javascripthtmlcssgoogle-chromegoogle-chrome-devtools

Can chrome devtools use local files instead of the network ones while I am developing.


Is the following possible with chrome developer tools?

While working on a remote site I would like to "map" some of its resources to my local files, so that when loading the site while devtools are open - it will use my local files instead of the network ones.

I tried mapping the file to workspace files but that doesn't work and produces a Workspace mismatch error.


Solution

  • I don't think there exists a extension that servers your purpose for Chrome browser. AFAIK, Google has not exposed such low level APIs for developing such extensions for Google Chrome browser. You could use a tool like Fiddler to do intercept http traffic and serve your own local files using its Auto Responder feature.