<p>I run my nodejs 8.9.4 app (which is not a server) in a remote Kubernetes cluster with <code>node --inspect=0.0.0.0:9229 app.js</code>. I then port-forward 9229 on my machine. Finally, I access to chrome inspector and I can see my source code. I tried to run with <code>--inspect-brk</code> and I successfuly debugged my app. But I can't take heap snapshot: the button is disabled. I can't understand why.
<a href="https://i.stack.imgur.com/AtfVk.png" rel="nofollow noreferrer">Disabled take snapshot button</a></p>

Antoine
<p>My advice is to :</p>

<ol>
<li><p>Update chrome to latest version and relaunched it (also it is good to download  <a href="https://www.google.com/chrome/browser/canary.html" rel="nofollow noreferrer">Chrome Canary</a> )</p></li>
<li><p>Restart node </p></li>
<li><p>Open chrome://inspect and added localhost: port number -9229  <a href="https://i.stack.imgur.com/zX65o.png" rel="nofollow noreferrer">update connection in chrome</a>.</p></li>
</ol>

<p>Take a look: <a href="https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27" rel="nofollow noreferrer">debugging-nodejs</a>, <a href="https://marmelab.com/blog/2018/04/03/how-to-track-and-fix-memory-leak-with-nodejs.html" rel="nofollow noreferrer">memory-leaks-nodejs</a>.</p>
