MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.21k stars 21.36k forks source link

Enhance documentation on debugging Azure Functions JavaScript #65755

Open bverhoeve opened 3 years ago

bverhoeve commented 3 years ago

I've been trying to get a debugger working for Azure Functions with NodeJS for about an hour now.

The documentation on it is quite minimalistic: _"When started with the --inspect parameter, a Node.js process listens for a debugging client on the specified port. In Azure Functions 2.x, you can specify arguments to pass into the Node.js process that runs your code by adding the environment variable or App Setting languageWorkers:node:arguments = .

To debug locally, add "languageWorkers:node:arguments": "--inspect=5858" under Values in your local.settings.json file and attach a debugger to port 5858.

When debugging using VS Code, the --inspect parameter is automatically added using the port value in the project's launch.json file.

In version 1.x, setting languageWorkers:node:arguments will not work. The debug port can be selected with the --nodeDebugPort parameter on Azure Functions Core Tools."_

This really doesn't really help that much. Having a tutorial that guides step by step would be very helpful, as it is quite a common scenario...


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ChaitanyaNaykodi-MSFT commented 3 years ago

Hello @bverhoeve, Thank you for your feedback! We have assigned this issue to the author to review further and take the next course of action.