Skip to content

Loading Sentry via --require causes debugger to cycle #11956

Closed

Description

@timfish

Using the --require flag to load Sentry causes the node debugging inspector to initialize every second for the local variables integration.

Reported by @s1gr1d

Activity

  1. self-assigned this
    on May 8, 2024
  2. timfish commented on May 9, 2024

    @timfish
    CollaboratorAuthor

    This is caused by the fact that --require and --import inject the code into EVERY child thread and process. This includes:

    • The main thread (obviously!)
    • All worker_threads
    • Processes created with child_process.fork()
    • Processes created by the cluster module

    This means the SDK is injected and started in the worker threads and it then starts more worker threads!

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions