-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Unable to monitor http/https requests made by node #5341
Comments
I was actually wondering the same. Inspecting the background page where node runs, shows zero on the network traffic tab while a lot of node http/https requests are going on made by require('http") module @rogerwang any chance on getting the node http traffic on the network tab there? |
It might be doable, but requires some effort since requests from Node don't go through Chromium's logic. |
@rogerwang actually it is already build in the latest NodeJS - so you can easily bind with the --inspect flag So it should be just a matter of activation ... |
The link describes JS debugging only. I don't think the network monitoring On Mon, Nov 7, 2016, 9:46 PM George Petrov notifications@github.com wrote:
|
well other people have done it nicely in devtool: https://mattdesl.svbtle.com/debugging-nodejs-in-chrome-devtools and also in node-inspector https://github.com/node-inspector/node-inspector See also https://github.com/cyrus-and/chrome-remote-interface It will be really neat to have the full debugging tools available in NWjs - it will make our lives really much more easier! Thanks for consideration @rogerwang ! |
In the link you provided, network monitoring is done by using a xhr-request On Mon, Nov 7, 2016, 10:36 PM George Petrov notifications@github.com
|
Well the whole v8_inspector was landed in Node 6.3: so check it and also: it should be all there |
The v8 inspector is used for inspecting V8 thus JS execution, nothing to do Are you able to monitor traffic from http module in Node? On Tue, Nov 8, 2016, 3:06 AM George Petrov notifications@github.com wrote:
|
My bad about the v8_inspector - will check for the http monitoring with it when using the --inspect command line in node. But you should really check https://github.com/cyrus-and/chrome-remote-interface - it has the network monitoring in the very first sample... |
I came across that repo. It is just a API layer exposing devtools inside On Tue, Nov 8, 2016, 6:24 AM George Petrov notifications@github.com wrote:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hello,
When I make a request I don't see it in the developer tools. I can see the request only when it's made with jquery or native xmlhttprequest.
I've binded console.log on the 'end' event and I can see that node-webkit is actually doing the request and it's returning me a correct response. But doing these "blind requests" is very hard. May be i'm missing something? How can i debug native node http requests without console.log'ing them.
Thank you.
The text was updated successfully, but these errors were encountered: