title: Debugging Node addons with CLion
body: <p>I try to get my hands on <a href="https://github.com/mscdex/node-mariasql" rel="nofollow">node-mariasql</a>, a binding to MariaDB's C++ client library. For better understanding, I would like to debug the C++ part on Debian, using <a href="https://www.jetbrains.com/clion" rel="nofollow">CLion</a>. </p>
  
  <p>Now, node-mariasql uses node-gyp as a build automation tool, whereas CLion only supports CMake, but is it still possible to debug a program ? I used CLion's JavaScript debugger to step into the JavaScript client, but of course when I reach a point where the C++ addon is called (<a href="https://github.com/mscdex/node-mariasql/blob/master/lib/Client.js#L34" rel="nofollow">here</a> for instance), I cannot see what it is doing since the C++ debugging is not setup.</p>
  
  <p>What are my options here ?</p>