Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

PKG inspect #384

Closed
dobraMorda opened this issue Mar 23, 2018 · 4 comments
Closed

PKG inspect #384

dobraMorda opened this issue Mar 23, 2018 · 4 comments
Labels

Comments

@dobraMorda
Copy link

Hello!

Anyone knows how to enable inspect in pkg? I tried to use a sample but it not works.

Best regards!
Dobra morda

@opowell
Copy link

opowell commented Sep 13, 2018

See #93.

@azryelryvel
Copy link

azryelryvel commented Jun 16, 2020

#93 is closed so i write here.
I mostly did what's written in #93 but so far it's not working for me.
I ran a node:12.16.1 container and installed pkg locally in it. In node_modules/pkg-fetch/patches/node.v12.16.1.cpp.patch , I removed the node_options.cc block which seems to be the one blocking the use of inspect.
Then i used the local pkg to build the application :
node node_modules/pkg/lib-es5/bin.js path/to/server.js --debug -b -t host --options inspect
But I still get /root/.pkg-cache/v2.6/built-v12.16.1-linux-x64: bad option: --inspect
I inspected the node_options.cc file in /tmp/VpJIGdcFfQzWrlk73Sd2/node/src/node_options.cc and i don't see the patch i removed, so theoretically, it should work.
Am i missing something to change in the patch ? https://github.com/vercel/pkg-fetch/blob/master/patches/node.v12.16.1.cpp.patch

@github-actions
Copy link

This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label

@github-actions github-actions bot added the Stale label Apr 20, 2021
@github-actions
Copy link

This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants