-
Notifications
You must be signed in to change notification settings - Fork 445
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
How to set inspect port for nodejs #557
Comments
@pragnagopa This looks like a regression in the host for non-Windows platforms. This command
But on linux, I can see that the cli setting |
thanks @fabiocav I think we understand the issue. It's a casing difference between Windows and *nix machines. @ntchjb you can try |
OK, I will use environment variables method instead. I think for cli that is installed from npm, we may set
So the Thanks for replying. |
That's a good point. Will get a fix in for this issue in the next release. |
Edit: Sorry never mind. Doesn't seem to be the same issue. |
Fixed in 8da9491 |
I'm using 2.0.1-beta.33 (on mac) and still seeing this. Is it to be expected? |
what are you seeing? |
Says the debugger failed to attach to port 5858 and I have to add this to my "NODE_OPTIONS": "--inspect=5858" In VS Code |
I just tried on a mac with beta.33 and it worked fine.
Then attach to that port from vscode worked |
Yep seems to be an issue with the VS Code template (@fiveisprime). The default task is: {
"label": "Run Functions Host",
"identifier": "runFunctionsHost",
"type": "shell",
"command": "func host start",
"options": {
"env": {
"languageWorkers:node:arguments": "--inspect=5858"
}
},
... but if I change to this it works {
"label": "Run Functions Host",
"identifier": "runFunctionsHost",
"type": "shell",
"command": "func host start --language-worker -- \"--inspect=5858\"",
"options": {
"env": {
"languageWorkers:node:arguments": "--inspect=5858"
}
}, Expect that |
@jeffhollan - Did you try updating VS code. I have version 1.25.1 and that contains the right setting. |
An update shipped last week that should handle this. You may need to re-initialize the local app to get the correct config. You can re-run the project creation to overwrite the task config. Were you prompted to update your config? |
@jeffhollan @ahmelsayed we're intentionally not using The default tasks.json is working for me on a mac with just the 'env' variable. @jeffhollan what version of node do you have? |
Since I updated to version 2.0.1-beta.30, I can't run debugging from VSCode. In the console log after I ran
func host start
, there is no--inspect=5858
flag at Start Process nodejsWorker.I already tried
func host start --language-worker -- "--inspect=5858"
but still no inspect flag. Did I miss something?I installed it via Homebrew (2.0.1-beta.31)
The text was updated successfully, but these errors were encountered: