theseus icon indicating copy to clipboard operation
theseus copied to clipboard

Passthrough arguments to node process

Open metafeather opened this issue 12 years ago • 1 comments

Before discovering Theseus I used node-inspector for debugging with the command below to launch my server and enable debugging:

node --debug server.js

However when using Theseus launcher I find I cannot pass the --debug argument through, nor others such as --port.

Is there are reason that this would not be possible?

It would be very handy to be able to use a full debugger at the same time as seeing Theseus metrics and introspection.

metafeather avatar Oct 29 '13 10:10 metafeather

node-theseus doesn't wrap node directly, so arguments you pass to it don't make it to node itself. I don't know of a way to do that, but a patch would be welcome. In the times that I've needed those features, I've edited the shebang line of node-theseus to include them, like this: #!/usr/bin/env node --debug

alltom avatar Oct 29 '13 12:10 alltom