-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add BPL_DEBUG_ENABLED to set --inspect #742
Add BPL_DEBUG_ENABLED to set --inspect #742
Conversation
4b69041
to
24426c3
Compare
9748f07
to
9bc4fba
Compare
9bc4fba
to
a311946
Compare
@paketo-buildpacks/nodejs-maintainers Any comments/remarks? It add some convenience when using a debugger. |
@paketo-buildpacks/nodejs-maintainers anyone? If I see it correctly, this would add another check on paketo-buildpacks/rfcs#175 which would be nice supposedly. |
Signed-off-by: Ralf Pannemans <[email protected]> Signed-off-by: Pavel Busko <[email protected]> Co-authored-by: Ralf Pannemans <[email protected]>
a311946
to
acc3d96
Compare
@paketo-buildpacks/nodejs-maintainers Any chance of getting a review? The actual change is rather smal, but 2 refactorings make it a bit more to review:
|
@paketo-buildpacks/nodejs-maintainers ^^ |
Apologies for the delay here, folks. I will review this in short order. |
fixes #741
Summary
Add support for
BPL_DEBUG_ENABLED
We added another helper
inspector
. This helper check forBPL_DEBUG_ENABLED
andBPL_DEBUG_PORT
and adds the corresponding--inspect
to theNODE_OPTIONS
.There are 2 main reasons why this pull request seems larger than expected at first sight:
optimize-memory/internal
in order to use ittestdata/optimize-memory
and adapted existing and our new test to usetestdata/simple_app
.Use Cases
The same could already be achieved by setting
NODE_OPTIONS
directly, but to implement RFC 0037 it can be configured in the same way as for other buildpacks.Checklist