Skip to content

Support V8 --async-stack-traces in NODE_OPTIONS #35627

Description

@jansepke

Is your feature request related to a problem? Please describe.
I would like set the V8 --async-stack-traces option through the NODE_OPTIONS environment variable.

Describe the solution you'd like
NODE_OPTIONS="--async-stack-traces" node should not throw the Error --async-stack-traces is not allowed in NODE_OPTIONS

Describe alternatives you've considered
setting --async-stack-traces as a command line argument is not possible in controlled environment like AWS Lambda (which only support NODE_OPTIONS)

Activity

  1. targos commented on Oct 13, 2020

    @targos
    Member

    This flag is enabled by default in V8. You do not need to pass it.

  2. jansepke commented on Oct 13, 2020

    @jansepke
    Author

    Also in nodejs v12 ?

  3. targos commented on Oct 13, 2020

    @targos
    Member

    Yes:

    DEFINE_BOOL(async_stack_traces, true,

  4. jansepke commented on Oct 13, 2020

    @jansepke
    Author

    Ok, thanks. Then it seems to be a problem with my code or with the AWS SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions