Experience-Monks / devtool

[OBSOLETE] runs Node.js programs through Chromium DevTools
MIT License
3.76k stars 148 forks source link

impossible to inspect http requests #109

Open lsimone opened 7 years ago

lsimone commented 7 years ago

I cannot log and inspect the HTTP requests executed by nodejs towards an external API.

I read your guide and the paragraph about --browser-field and xhr-request, but I need to use another HTTP client because it is a restful.js dependency, and all the requests it executes are not logged in console and in the network devtool panel.

I tried the most simplified scenario that is the following:

require('request')('https://api.github.com/users/mattdesl/repos', function (error, response, body) {
    console.log('request done', error, response, body)
});

require('xhr-request')('https://api.github.com/users/mattdesl/repos');

Just the second request is reported in devtool network panel and in console. The first one is executed but I cannot trace it in devtool. Is there is a solution?