adobe-research / theseus

A pretty darn cool JavaScript debugger for Brackets
Other
1.34k stars 69 forks source link

Passthrough arguments to node process #42

Open metafeather opened 10 years ago

metafeather commented 10 years ago

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.

alltom commented 10 years ago

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