Re: Debugging a PHP Extension via GDB

From: Date: Thu, 22 Apr 2010 14:24:56 +0000
Subject: Re: Debugging a PHP Extension via GDB
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-48055@lists.php.net to get a copy of this message
On Thu, 22 Apr 2010, Sebastian Kurfürst wrote: > Hello everybody, > > [I hope this is the right list for this question, if not, it'd be great > if you could point me to the right direction]. > > I'm currently developing a PHP Extension which is built as dynamic > library, and not directly into PHP core. I'm trying to figure out how to > set break-points inside the extension with GDB, so debugging is easier. > > So far, I started gdb with "gdb /my/path/to/php" (which has debug > symbols enabled); and then tried to set a breakpoint into my extension via: > > break /path/to/php/extension/objectmonitor/objectmonitor.c:80 Try just "break objectmonitor.c:80". Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug

« previous php.internals (#48055) next »