You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: When inspecting multiple node contexts using the new --inspect flag paired with the dedicated node inspect in chrome dev tools, knowing which process you're currently inspecting can be confusing as they're all called "Nodejs Main Context" as per (I think):
contextCreated(env->context(), "Node.js Main Context");
Potential solutions:
Taking an optional environment variable like NODE_CONTEXT_TITLE (looks like the env might already be being passed in there, not sure if same env as process.env?)
Could pass in a flag along the lines of --inspect-context-title
Often the process title is just 'npm' or 'node' so you get the same problem. Ideally, I'd like to click the context dropdown and see 'Service A' and 'Service B' for ease of debugging. Changing process.title also has limitations and side effects on other things as I understand it
Activity
Fishrock123 commentedon Nov 2, 2017
Shouldn't it just take
process.title?filmerjarred commentedon Nov 3, 2017
Often the process title is just 'npm' or 'node' so you get the same problem. Ideally, I'd like to click the context dropdown and see 'Service A' and 'Service B' for ease of debugging. Changing process.title also has limitations and side effects on other things as I understand it
addaleax commentedon Nov 28, 2017
@bnoordhuis I guess this was fixed by #17087?
filmerjarred commentedon Nov 28, 2017
Looks to be 👍