Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

node debug -p fails #5903

Closed
Closed
@julien51

Description

@julien51

Hello,

We have a stuck node.js process. We suspect it may be due to some kind of infinite loop somwhere. Since we have no idea where to look it up, we tried using node debug -p . No luck:

# node debug -p 13974
connecting.............There was an internal error in Node's debugger. Please report this bug.
connect ECONNREFUSED
Error: connect ECONNREFUSED
    at errnoException (net.js:901:11)
    at Object.afterConnect [as oncomplete] (net.js:892:19)

The output makes me think that the node debug process can't connect to our process precisely because our event loop is stuck. Could that be the case?
In another thread, @davepacheco indicates that this should not be a problem:

That's not a problem. We modified Node back in the 0.4 days to support opening the debugger port even if the Node program itself is stuck in an infinite loop, and V8 is able to evaluate expressions in this context.

Can someone clarify things? Why are we unable to connect to our "stuck" node.js process? Any idea on how to debug that? (we're on debian... so all tools requiring us to use Solaris won't do :()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions