title: How to debug nodejs addon by gdb
body: <h2>Heading</h2>
  
  <p>I am writing a Node.Js C++ addon,When I try to debug my c++ add by the way i searched on internet,it just cannt work at all.</p>
  
  <p>what i get from internet is 
  gdb node
  set args app.js
  run</p>
  
  <p>i get this
  /usr/local/bin/node": not in executable format: File format not recognized</p>
  
  <p>after type file /usr/local/bin/node</p>
  
  <p>i get this 
  /usr/local/bin/node: Mach-O universal binary with 2 architectures
  /usr/local/bin/node (for architecture i386):    Mach-O executable i386
  /usr/local/bin/node (for architecture x86_64):  Mach-O 64-bit executable x86_64</p>
  
  <p>i dont konw why my gdb told me the node is not a executeable fomat</p>