-
Notifications
You must be signed in to change notification settings - Fork 1k
Possible to build with --inspect or --inspect-brk option? #93
Comments
|
Thanks for the guidance, this worked! For anyone reading this in the future, I had to switch over to Linux to build Node; the build process would just get stuck on Windows, even when using WSL. The first build took about 25 minutes to complete on an i7 with 16gb ram, but after that it was able to reuse the previously built Node. |
I am writing an application that allows users to write their own JS "apps" that are interpreted on the server (https://github.com/opowell/jtree). It would be ideal if they could use "debugger" statements in their code. So.. I would be most pleased if this was added to a future release. (I will be using the workaround in the meantime). |
pkg baking with --inspect or --inspect-brk did not seem to work as expected. Would be wonderful if this can be done to assist debugger trigger for languages converted to js (like coffeescript etc.). pkg is excellent! |
I can't build customised node.js with next error Error! Error: spawn patch ENOENT After downloading from git, it occurs at the 'applying patches' step. |
apt install patch |
and you'll need to contend with this: https://github.com/vercel/pkg-fetch/blob/99c804dd52d9ffa72ba8c917a76f479d71c27875/lib/build.ts#L32 and this very sneaky early exit https://github.com/vercel/pkg-fetch/blob/99c804dd52d9ffa72ba8c917a76f479d71c27875/patches/node.v8.17.0.cpp.patch#L439 |
Hey! I'm really enjoying using pkg both in production and playing around with it in some personal projects. I'm trying to debug one of these projects on a production server, but it looks like running
./executable-name --inspect-brk
doesn't pass the--inspect-brk
option to Node. I've tried baking it in withpkg package.json --options inspect-brk
too, but that throws the following error:Is it possible to use
--inspect-brk
in any way? In ideal conditions I shouldn't have to be debugging an app in production, but sometimes conditions aren't ideal. 🙃The text was updated successfully, but these errors were encountered: