title: How to debug a C++ program from PHP?
body: <p>I would like to debug a C++ program called from PHP code. I think It should be possible using "gdb", but I don't know exactly how to do that.</p>
  
  <p>my idea is something like that:</p>
  
  <pre><code>exec("gdb myprogram");
  exec("break 55");
  exec("run");
  </code></pre>
  
  <p>but It doesn't work, any suggestion?</p>