Hi,

Can anyone tell me how to debug php with the extension loaded?  I've got an 
error in one of the standard tests for pecl-expect, and I can see where it's 
coming from, but I want to inspect the various scope variables.

I've run up the following, which loads it in gdb and runs the test, which 
causes the failure, from within my extension compilation space, but I can't see 
how to load the symbols for the php binary or my extension .so.

gdb -args /usr/bin/php7.2 -n -c \
/usr/local/src/pecl-expect/tmp-php.ini \
-d open_basedir= \
-d output_buffering=0 \
-d memory_limit=-1 \
-d extension_dir=/usr/local/src/pecl-expect/modules/ \
-d extension=expect.so \
/usr/local/src/pecl-expect/tests/bug6996.php

Any help on how to debug the c side of extension would help, I'm currently 
using printf and php_error_docref to examine state.  I tried compiling a fresh 
version of php-src checked out to the same php version as the install on this 
machine, but I can't even get that to run, and load the extension.

Thanks in advance,

Si

________________________________
The information contained in this e-mail message is intended only for the 
personal and confidential use of the recipient(s) named above. This message may 
be an attorney-client communication and/or work product and as such is 
privileged and confidential. If the reader of this message is not the intended 
recipient or an agent responsible for delivering it to the intended recipient, 
you are hereby notified that you have received this document in error and that 
any review, dissemination, distribution, or copying of this message is strictly 
prohibited. If you have received this communication in error, please notify us 
immediately by e-mail, and delete the original message.

Reply via email to