mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-19 02:18:56 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297028 c90b9560-bf6c-de11-be94-00142212c4b1
105 lines
3.1 KiB
XML
105 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<refentry xml:id="function.apd-breakpoint" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>apd_breakpoint</refname>
|
|
<refpurpose>Stops the interpreter and waits on a CR from the socket</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>apd_breakpoint</methodname>
|
|
<methodparam><type>int</type><parameter>debug_level</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
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.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
&apd.debug-level.description;
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Typical session using tcplisten</title>
|
|
<programlisting role="shell">
|
|
<![CDATA[
|
|
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)
|
|
>\n
|
|
statement: /home/alan/Projects/project2/test.php:8
|
|
>\n
|
|
statement: /home/alan/Projects/project2/test.php:8
|
|
>\n
|
|
statement: /home/alan/Projects/project2/test.php:10
|
|
>apd_echo($i);
|
|
EXEC: apd_echo($i);
|
|
0
|
|
>apd_echo(serialize(apd_get_active_symbols()));
|
|
EXEC: apd_echo(serialize(apd_get_active_symbols()));
|
|
a:47:{i:0;s:4:"PWD";i:1;s:10:"COLORFGBG";i:2;s:11:"XAUTHORITY";i:3;s:14:"
|
|
COLORTERM_BCE";i:4;s:9:"WINDOWID";i:5;s:14:"ETERM_VERSION";i:6;s:16:"SE
|
|
SSION_MANAGER";i:7;s:4:"PS1";i:8;s:11:"GDMSESSION";i:9;s:5:"USER";i:10;s:5:"
|
|
MAIL";i:11;s:7:"OLDPWD";i:12;s:5:"LANG";i:13;s:10:"COLORTERM";i:14;s:8:"DISP
|
|
LAY";i:15;s:8:"LOGNAME";i:16;s:6:"
|
|
>apd_echo(system('ls /home/mydir'));
|
|
........
|
|
>apd_continue(0);
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|