title: using node --inspect to attach Firebase emulated functions to browser DevTools
body: <p>I'm attempting to use <code>node --inspect</code> to attach my <code>index.js</code> Firebase functions to chrome devtools for a richer debugging experience than the terminal logs offer.  </p>
  
  <p>So far I've met with no success; here's what I've tried: </p>
  
  <ol>
  <li><p>simply running either <code>firebase serve</code> and <code>firebase emulators:start</code> (but Chrome devtools does not seem to detect these)  </p></li>
  <li><p>running <code>node --inspect</code> against <code>functions/index.js</code>, which serves it on <code>localhost:9229</code>, but not in the context of the emulator, which I need for the other services (<code>hosting</code>, <code>firestore</code>).    </p></li>
  <li><p>reading the node docs and this SO post: <a href="https://stackoverflow.com/questions/55315159/cant-debug-node-js-using-chrome-devtools">Can&#39;t debug node.js using Chrome DevTools</a>  </p></li>
  </ol>
  
  <p>I'm not sure whether  </p>
  
  <ul>
  <li>(a) I'm missing something basic (highly likely),</li>
  <li>(b) it isn't possible to attach the functions emulator to browser devtools, or </li>
  <li>(c) it's possible, but bugged or not implemented (in which case I'll open a bug/feature request with <code>firebase-tools</code>).</li>
  </ul>
  
  <p>Any direction appreciated.  </p>