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

Possible to build with --inspect or --inspect-brk option? #93

Closed
@nozzlegear

Description

@nozzlegear

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 with pkg package.json --options inspect-brk too, but that throws the following error:

/home/nozzlegear/.pkg-cache/v1.9/fetched-v7.6.0-linux-x64: bad option: --inspect-brk
> Error! Error: Was not able to compile for '{"nodeRange":"node7","platform":"linux","arch":"x64","output":"alexa-skills-linux","forceBuild":false,"fabricator":{"nodeRange":"node7","platform":"linux","arch":"x6
4","forceBuild":false,"binaryPath":"/home/nozzlegear/.pkg-cache/v1.9/fetched-v7.6.0-linux-x64"},"binaryPath":"/home/nozzlegear/.pkg-cache/v1.9/fetched-v7.6.0-linux-x64","slash":"/"}'
    at Socket.<anonymous> (/mnt/d/source/alexa-skills/node_modules/pkg/lib-es5/producer.js:46:25)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at onwriteError (_stream_writable.js:341:10)
    at onwrite (_stream_writable.js:359:5)
    at fireErrorCallbacks (net.js:483:13)
    at Socket._destroy (net.js:524:3)
    at WriteWrap.afterWrite [as oncomplete] (net.js:818:10)
error Command failed with exit code 2.

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. 🙃

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions