function.apd-breakpoint.html 5.06 KB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Stops the interpreter and waits on a CR from the socket</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.apd.html">APD Funktionen</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.apd-callstack.html">apd_callstack</a></div>
 <div class="up"><a href="ref.apd.html">APD Funktionen</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><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>
 <div class="refsect1 description" id="refsect1-function.apd-breakpoint-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>apd_breakpoint</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$debug_level</code></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>


 <div class="refsect1 parameters" id="refsect1-function.apd-breakpoint-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>

    <dt>
<code class="parameter">
debug_level</code></dt>
<dd>
<p class="para">Ein aus der Addition von
<em>XXX_TRACE</em>-Konstanten gewonnener Integerwert.</p>
<p class="para">. Von der Verwendung der <strong><code>MEMORY_TRACE</code></strong>-Konstante
wird abgeraten, da diese die Ausführung sehr verlangsamt und keine genauen
Ergebnisse zu liefern scheint. <strong><code>ASSIGNMENT_TRACE</code></strong> ist
noch nicht implementiert.</p><p class="para">Um alle funktioierenden Traces
(TIMING, FUNCTIONS, ARGS SUMMARY (ähnlich zu strace -c)) zu aktivieren,
benutzen Sie den Wert 99</p></dd>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.apd-breakpoint-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt bei Erfolg <strong><code>TRUE</code></strong> zurück. Im Fehlerfall wird <strong><code>FALSE</code></strong> zurückgegeben.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.apd-breakpoint-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-376">
    <p><strong>Beispiel #1 Typical session using tcplisten</strong></p>
    <div class="example-contents">
<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>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.apd.html">APD Funktionen</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.apd-callstack.html">apd_callstack</a></div>
 <div class="up"><a href="ref.apd.html">APD Funktionen</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>