Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ol> <li>You want to get your hands on a debug build of <code>mod_php</code> (with symbols) or <a href="http://www.crucialp.com/resources/tutorials/server-administration/apache-2-php-4-5-mod_php-linux-redhat-freebsd-apache2-php4-php5.php" rel="nofollow noreferrer">build your own</a> (<code>configure --enable-debug</code>)</li> <li>You should configure your Apache to always keep exactly one worker process instance up (which will be the instance you debug), that is, set <a href="http://httpd.apache.org/docs/2.0/mod/prefork.html#minspareservers" rel="nofollow noreferrer"><code>MinSpareServers</code></a>, <a href="http://httpd.apache.org/docs/2.0/mod/prefork.html#maxspareservers" rel="nofollow noreferrer"><code>MaxSpareServers</code></a> and <a href="http://httpd.apache.org/docs/2.0/mod/mpm_common.html#startservers" rel="nofollow noreferrer"><code>StartServers</code></a> all to 1. Also make sure any timeout parameters are generously set</li> <li><a href="http://www-inst.eecs.berkeley.edu/~cs61c/resources/gdb5-refcard.pdf" rel="nofollow noreferrer">Use <code>gdb</code></a> or <a href="https://stackoverflow.com/questions/79023/c-gdb-gui">any graphical interface to <code>gdb</code></a> (such as <a href="http://www.gnu.org/software/ddd/" rel="nofollow noreferrer"><code>ddd</code></a> or <a href="http://www.eclipse.org/cdt/" rel="nofollow noreferrer">Eclipse CDT</a>) to attach to the one and only Apache worker process. Stick a breakpoint in one of the PHP sources etc. and continue.</li> <li>Point your browser to your webserver and access a PHP page. Your breakpoint will trigger. If you want to wake the debugger at a particular point in your PHP script execution, generate a <code>SIGTRAP</code> from PHP and <code>gdb</code> will normally oblige you.</li> </ol> <p>Have fun!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload