1

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".

1
  • The developer tools allow you to edit a local copy. If you want the changes you make to be permanent, you need to edit the source file. Commented Oct 15, 2014 at 15:45

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.