downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/function.apd-breakpoint.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/ref.apd.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'function.apd-breakpoint.php',
   
1 => 'apd_breakpoint',
  ),
 
'up' =>
  array (
   
0 => 'ref.apd.php',
   
1 => 'APD Functions',
  ),
 
'prev' =>
  array (
   
0 => 'ref.apd.php',
   
1 => 'APD Functions',
  ),
 
'next' =>
  array (
   
0 => 'function.apd-callstack.php',
   
1 => 'apd_callstack',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="function.apd-breakpoint" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">apd_breakpoint</h1>
  <p class="verinfo">(PECL apd &gt;= 0.2)</p><p class="refpurpose"><span class="refname">apd_breakpoint</span> &mdash; <span class="dc-title">Stops the interpreter and waits on a CR from the socket</span></p>

 </div>
 <a name="function.apd-breakpoint.description"></a><div class="refsect1 description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><b>apd_breakpoint</b></span>
    ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$debug_level</tt></span>
   )</div>

  <p class="para rdfs-comment">
   This can be used to stop the running of your script, and await responses
   on the connected socket.  To step the program, just send enter (a blank
   line), or enter a php command to be executed.
  </p>
 </div>


 <a name="function.apd-breakpoint.parameters"></a><div class="refsect1 parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   </p><dl>

    <dt class="varlistentry">
<span class="term"><i><tt class="parameter">
debug_level</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">An integer which is formed by adding
together the <i>XXX_TRACE</i> constants.</p><p class="para">It is not recommended
to use <b><tt class="constant">MEMORY_TRACE</tt></b>. It is very slow and does not appear to be accurate.
<b><tt class="constant">ASSIGNMENT_TRACE</tt></b> is not implemented yet.</p><p class="para">To turn on all
functional traces (TIMING, FUNCTIONS, ARGS SUMMARY (like strace -c)) use the value 99</p>
</dd>

   </dl>
<p>
  </p>
 </div>


 <a name="function.apd-breakpoint.returnvalues"></a><div class="refsect1 returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <b><tt class="constant">TRUE</tt></b> on success or <b><tt class="constant">FALSE</tt></b> on failure.
  </p>
 </div>


 <a name="function.apd-breakpoint.examples"></a><div class="refsect1 examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   </p><div class="example">
    <p><b>Example #1 Typical session using tcplisten</b></p>
    <div class="example-contents programlisting">
<div class="shellcode"><pre class="shellcode">bash#tcplisten localhost 7777

APD - Advanced PHP Debugger Trace File
---------------------------------------------------------------------------
Process Pid (6118)
Trace Begun at Sun Mar 10 23:13:12 2002
---------------------------------------------------------------------------
(  0.000000): apd_set_session_trace called at /home/alan/Projects/project2/test.
php:5
(  0.074824): apd_set_session_trace_socket() at /home/alan/Projects/project2/tes
t.php:5 returned.  Elapsed (0.074824)
(  0.074918): apd_breakpoint() /home/alan/Projects/project2/test.php:7
              ++ argv[0] $(??) = 9
apd_breakpoint() at /home/alan/Projects/project2/test.php:7 returned.  Elapsed (
-2089521468.1073275368)
&gt;\n
statement: /home/alan/Projects/project2/test.php:8
&gt;\n
statement: /home/alan/Projects/project2/test.php:8
&gt;\n
statement: /home/alan/Projects/project2/test.php:10
&gt;apd_echo($i);
EXEC: apd_echo($i);
0
&gt;apd_echo(serialize(apd_get_active_symbols()));
EXEC:  apd_echo(serialize(apd_get_active_symbols()));
a:47:{i:0;s:4:&quot;PWD&quot;;i:1;s:10:&quot;COLORFGBG&quot;;i:2;s:11:&quot;XAUTHORITY&quot;;i:3;s:14:&quot;
COLORTERM_BCE&quot;;i:4;s:9:&quot;WINDOWID&quot;;i:5;s:14:&quot;ETERM_VERSION&quot;;i:6;s:16:&quot;SE
SSION_MANAGER&quot;;i:7;s:4:&quot;PS1&quot;;i:8;s:11:&quot;GDMSESSION&quot;;i:9;s:5:&quot;USER&quot;;i:10;s:5:&quot;
MAIL&quot;;i:11;s:7:&quot;OLDPWD&quot;;i:12;s:5:&quot;LANG&quot;;i:13;s:10:&quot;COLORTERM&quot;;i:14;s:8:&quot;DISP
LAY&quot;;i:15;s:8:&quot;LOGNAME&quot;;i:16;s:6:&quot;
&gt;apd_echo(system(&#039;ls /home/mydir&#039;));
........
&gt;apd_continue(0);</pre>
</div>
    </div>

   </div><p>
  </p>
 </div>


</div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites