Pavel Frankov
Pavel Frankov

Reputation: 172

Make persistent changed JavaScript in Developer Tools

Is it any way to debug any page's JavaScript by saving it, changing it and reload page with that changed JS?

Tried to save changes in Sources in Developer Tools but it works only until page not reloaded.

Also tried to use Workspaces but didn't get sense: if I change any linked file in workspace folder — it causes an error "workspace mapping mismatch".

Upvotes: 1

Views: 906

Answers (1)

vsevik
vsevik

Reputation: 9659

Workspaces is the way to go for you. You have probably setup them incorrectly though. The script resource that you load from the network should be served from the same file that you edit in DevTools.

Also disabling cache in DevTools should help against browser caching old script version.

Upvotes: 2

Related Questions