title: how to log OUTGOING https requests from node within webstorm
body: <p>I'm hacking together some node.js code that calls an external webservice and I'm getting bad results.  I'd like to log the raw request and response so that I can inspect it.</p>
  
  <p>Here's the thing:  <strong>I'm not consuming the http library directly</strong>, I'm consuming it through an OAuth library.  </p>
  
  <p>I'm already adding debug statements in the oauth library code and I don't like it.  Now it looks like I'm going to have to go into http library and start messing with that?  This can't be correct.</p>
  
  <p>If I was on windows, I'd fire up fiddler.  A friend mentioned wireshark but wireshark tells me I have to install X11.  Really?  I'm not going down that rabbit hole.</p>
  
  <p>Then I tried node-inspector, but I think that is for server code not client code.  It says your suppose to start your node process before attaching.  Well my node process is a test case (vows) that ends shortly after is starts... so no luck there.</p>
  
  <p>I guess this would difficult with any stack but jeez, it makes me miss .net!</p>
  
  <p>So, how can I inspect what's going over the wire when using node.js as client to external webservice on mountain lion?</p>
  
  <p>thanks!
  Dan</p>