Skip to content

Allow inspector flags with SEA binaries via configuration #51688

Open
@cmaster11

Description

@cmaster11

What is the problem this feature will solve?

It is currently impossible to enable the debugger at the start in a SEA binary because both CLI flags (like --inspect) and NODE_OPTIONS don't allow it. The only current workaround is sending the SIGUSR1 signal to the program, which can only be achieved when the program starts successfully and has limitations due to the impossibility of specifying the HOST:PORT args.

See:

if (sea::IsSingleExecutable()) return;

What is the feature you are proposing to solve the problem?

I think it would be nice to have an additional flag in the SEA config that would allow for these options to be enabled. This would allow the distribution of debuggable binaries for any testers involved in a project.

What alternatives have you considered?

The current alternative is to distribute the standalone node binary + a CJS bundle, which is not the same as having a single file UX-wise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.single-executableIssues and PRs related to single-executable applications

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions