Description
Feature Request
Is your feature request related to a problem? Please describe
When using the SDK, sometimes I want to debug the call. Often this happens when a call fails and I want to verify what's going over the wire and what's coming back to determine if it's the Graph API or the SDK that's failing.
Describe the solution you'd like
I'd like to be able to put the Graph client, or a call in debug mode, where I get to see the request and response (URL + payload + headers) that go over the wire.
Describe alternatives you've considered
In a browser I can get this information from the network tab, but in Node apps, this would require a proxy which is inconvenient.
Additional context
Perhaps we could use implementing this feature using middleware, where we offer additional middleware that's logging requests and responses to console or better yet, offers a callback that allows me to decide how I want to deal with the information.