- Go to Edit Configurations under the Run menu
- Create a new Attach to Node.js/Chrome configuration
- Choose a port, e.g. 5858
- Save & close
- Go to your local.settings.json
- Add the following:
{
...
"Values": {
...
"languageWorkers:node:arguments": "--inspect=5858"
}
}
- Open a new terminal and start your function with
func host start
- Run your new debugger configuration
- ...
- Profit!