Skip to content

Can't set debug port by specifying --node-args="--debug=7001" #610

@MeanwhileMedia

Description

@MeanwhileMedia
pm2 start main.js --node-args="--debug=7001"

When running the above cli command, the node process does receive the "--debug" argument, but ignores the port. The console responds:

Debugger listening on port 5863

I am assuming port #5863 is just a default selected by node. Any ideas why the port isn't getting set?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions