-
Notifications
You must be signed in to change notification settings - Fork 45
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
Improve docs on passing args to node process #648
Comments
Same behavior with the most recent version I can get from npm. Azure Functions Core Tools
Core Tools Version: 4.0.4895 Commit hash: N/A (64-bit)
Function Runtime Version: 4.13.0.19486 |
Hi @pellebjerkestrand the recommended way to modify the arguments to the node process is to use the |
Thanks a lot! That was not easy to find. |
Yeah I agree it's a bit of a needle in a haystack and we've heard this feedback before. Moving the issue to the Node.js repo for follow up. Do you have any suggestions of where you may have looked to find this information? |
It felt natural to me that passing arguments to the node process could be done on the command line, so I was looking in If using I still think it's more ergonomic to be able to pass these arguments on the command line when using |
@ejizba According to the documentation, using Does setting arguments via I'm asking because using OTEL with ESM requires passing specific arguments to Node.js, as mentioned here: https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/esm-support.md#additional-notes-on-experimental-loaders. Thank you in advance! |
func start
with-- "--prof"
seems to do nothing. I, at least, can't find the resulting *.log file anywhere on my system.Adding
--prof
toNODE_OPTIONS
inlocal.settings.json
results in an error message.Relevant output snippet:
Easy profiling of Node.js apps (https://nodejs.org/en/docs/guides/simple-profiling/) seems impossible, unless I'm missing something.
Please allow us to profile Node.js apps run with
func start
.The text was updated successfully, but these errors were encountered: