# Getting error while running with custom settings.js file

**URL:** <https://discourse.nodered.org/t/getting-error-while-running-with-custom-settings-js-file/41606>\
**Category:** General\
**Created:** [25 February 2021 08:34 UTC](https://discourse.nodered.org/t/getting-error-while-running-with-custom-settings-js-file/41606 "2021-02-25T08:34:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [25 February 2021 08:42 UTC](https://discourse.nodered.org/t/getting-error-while-running-with-custom-settings-js-file/41606/2 "2021-02-25T08:42:04Z")

</div>

> [@Sudthakur](#):
>
> Error loading settings file: C:\Users\thakusu\Desktop\Ruby\_Project\NodeRed\rubysettings.js

- Does `rubysettings.js` exist in `C:\Users\thakusu\Desktop\Ruby_Project\NodeRed\`?
- Does the account you run node-red with have access to user `thakusu` desktop folder?

> [@Sudthakur](#):
>
> And where to check error for the setting files.

impossible to help if you dont provide a copy of your custom settings.js file.

> [@Sudthakur](#):
>
> And additionally how to setup node-red project and directly running from vs-code.

#### If you are running node-red from source...

Open the project folder then

1. VSCODE: Modify launch.json ...

```auto
  {
     "version": "0.2.0",
     "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "skipFiles": [
                "<node_internals>/**"
            ],
            "env": { "NODE_ENV": "development" },
            "preLaunchTask": "npm: build-dev",
            "program": "${workspaceFolder}\\packages\\node_modules\\node-red\\red.js"
        }
     ]
  }

```

1. VSCODE: Add an entry in tasks.json

```auto
{
    "version": "2.0.0",
    "tasks": [
         {
			"type": "npm",
			"script": "build-dev",
			"group": "build",
			"problemMatcher": [],
			"label": "npm: build-dev",
			"detail": "build-dev"
         }
    ]
}

```

1. Press F5 to start debugging

#### If you are running from NPM Installed node-red...

see [How to proper debug custom node - #13 by Steve-Mcl](https://discourse.nodered.org/t/how-to-proper-debug-custom-node/9308/13)

---

_[View the full topic](https://discourse.nodered.org/t/getting-error-while-running-with-custom-settings-js-file/41606)._
