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.
ID: b47363e3-c36f-0755-819c-26946013d673
Version Independent ID: 197c63a1-9f72-1049-f27e-8c9c672ec472
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.