Skip to content

Instantly share code, notes, and snippets.

@marcuslang
Created October 20, 2021 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcuslang/6d4d5e86a8efb3c3214b87595c9772e6 to your computer and use it in GitHub Desktop.
Save marcuslang/6d4d5e86a8efb3c3214b87595c9772e6 to your computer and use it in GitHub Desktop.
Debugging Azure Functions locally in Intellij
  1. Go to Edit Configurations under the Run menu
  2. Create a new Attach to Node.js/Chrome configuration
  3. Choose a port, e.g. 5858
  4. Save & close
  5. Go to your local.settings.json
  6. Add the following:
{
  ...
  "Values": {
    ...
    "languageWorkers:node:arguments": "--inspect=5858"
  }
}
  1. Open a new terminal and start your function with func host start
  2. Run your new debugger configuration
  3. ...
  4. Profit!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment