Description
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:
Line 306 in 8a41d9b
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.