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.
my idea is something like that:
exec("gdb myprogram");
exec("break 55");
exec("run");
but It doesn't work, any suggestion?