Skip to content

Improve docs on passing args to node process #648

@pellebjerkestrand

Description

@pellebjerkestrand

func start with -- "--prof" seems to do nothing. I, at least, can't find the resulting *.log file anywhere on my system.

Adding --prof to NODE_OPTIONS in local.settings.json results in an error message.

Relevant output snippet:

Azure Functions Core Tools
Core Tools Version:       4.0.4865 Commit hash: N/A  (64-bit)
Function Runtime Version: 4.12.2.19454

[2022-12-01T13:39:27.380Z] Language Worker Process exited. Pid=14562.
[2022-12-01T13:39:27.380Z] node exited with code 9 (0x9). .
[2022-12-01T13:39:27.390Z] node: --prof is not allowed in NODE_OPTIONS

Easy profiling of Node.js apps (https://nodejs.org/en/docs/guides/simple-profiling/) seems impossible, unless I'm missing something.

Please allow us to profile Node.js apps run with func start.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions