Skip to content

is there some way to debug a process ignoring child processes that tries to connect to the debugger? #649

@bjrmatos

Description

@bjrmatos
  • Node.js Version: 8.0.0
  • OS: OSX
  • Scope (install, code, runtime, meta, other?): code, runtime

i'm trying to debug my node.js application (using --inspect), the application uses some third-party modules that make use of the child_process module internally.

when i try to debug my app and when some part of the code reach other part that uses child_process a message like this is printed Starting inspector on 0.0.0.0:9229 failed: address already in use and the child process exits with an exit code of 12 (which is documented in docs), what i understand is that all nodejs child processes by default tries to connect to the inspector on the same port (9229 by default), however i'm trying to find a way to tell node that all child processes should not try to connect to the inspector, i'm only interested in debugging all the code that is running in the same process, this is something that was possible using the now deprecated node-inspector package, with node-inspector all code can work normally because child processes does not try to connect to the debugging session, which makes debugging all the code in the main process possible.

is there something i can do to achieve this? it is really annoying that the application does not work correctly in debugging mode for this reason. thanks!

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