Skip to content

JavaScript Developer Tools: An extra note in Debug JavaScript (Step 7) for the changes to work without setting up a workspace #30593

@frostBite1418

Description

@frostBite1418

Checks

Describe your suggestion

In the assignment Debug JavaScript, step 7 shows how pressing ctrl + s saves the JavaScript file with the edits you made in Google Chrome to reflect the changes dynamically. However, when you press ctrl + s, it doesn't really save the JS file. Turns out, you need to set up a workspace before making the edits

Image **Figure 1: Error in get-started.js file because *workspace* need to be set up**

A work around for this is to make a local folder in your laptop and adding it in the overrides panel. This way changes are saved in your laptop and edits are reflected in the website. The work around instruction are as follows (feel free to edit as needed):

What you can do here is the following:

  1. Go to Sources
  2. (Press ">>" to expand if Overrides is not visible and) click Overrides
  3. Add an empty folder from your laptop by pressing on "Selecting folder for overrides" (any folder, doesn't matter where)
  4. Above the folder, you'll see "Enable Local Overrides". Make sure it's checked
  5. Go to Sources and Page and make the edits in the JavaScript File
  6. Ctrl + S to save changes
  7. (Crucial step): reload the page
  8. Changes should now reflect in the website

Path

Foundations

Lesson Url

https://www.theodinproject.com/lessons/foundations-javascript-developer-tools

(Optional) Discord Name

frostBite1194

(Optional) Additional Comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions