Re: Debugging a PHP Extension via GDB

From: Date: Thu, 22 Apr 2010 14:21:16 +0000
Subject: Re: Debugging a PHP Extension via GDB
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-48054@lists.php.net to get a copy of this message
On 22.04.2010 17:51, Sebastian Kurfürst wrote: > GDB then asks: > > No source file named /path/to/php/extension/objectmonitor/objectmonitor.c. > Make breakpoint pending on future shared library load? (y or [n]) y > > When I run php with a script via "run index.php", the system does not > stop at the set break-point. Make sure the extension is loaded and it was compiled with debug symbols (-g3 helps a lot). You might also want to compile the extension statically, I personally find it much more convenient way to debug. -- Wbr, Antony Dovgal --- http://pinba.org - realtime statistics for PHP

« previous php.internals (#48054) next »