-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug #910
Comments
I believe you put |
Hmmm.
Error: unrecognized option: --debug-brk
|
What I was trying to convey was |
script gets executed but options don't get honored. Feasible would be to pass any options which coffee doesn't recognize to the node intact |
I'm afraid that there isn't a way to pass arguments directly to the node interpreter from the https://github.com/jashkenas/coffee-script/blob/master/bin/coffee |
I was going to write a nice, detailed message, but I'm lazy so I will just paste the related section of IRC chat:
|
Excellent. Also an environment variable can hold node options |
This is how a "fork" can be made in node. Hope this helps #!/usr/bin/env node if (process.env.coffeenodeargs) { |
I don't think a child process is the way to go with this. I see that you're passing the custom file descriptors to redirect stdin, stdout, and stderr, but is there no way to actually replace the current process with a new process (see |
I thought we'd want to stay in node infrastructure. There's no exec (in syscall sense) in node which i'm aware of. If we could make coffee binary a shell script, things would be done easier. |
We do want to stay within node, I was just hoping they would have something comparable. Though after looking for a while, it seems that spawning the child process may be our best bet. |
Right. And passing [0,1,2] as descriptors just delegates parent's channels to the child, so |
--Vladimir |
@dvv: I still plan on adding the |
Staying tuned, |
@dvv: this is now fixed on a branch in my fork, waiting on pull request 945. |
Hi!
How do I pass node executable options when running a coffee script with coffee binary or simply running a chmod a+x file with
#!/usr/bin/env coffee
?In particular, I want to pass --debug-brk
TIA,
--Vladimir
The text was updated successfully, but these errors were encountered: