mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-10-11 00:43:20 +08:00
v0.0.2
This commit is contained in:
@@ -1,106 +1,106 @@
|
||||
<!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 class="docs"><div id="layout">
|
||||
<div id="layout-content"><div id="function.apd-breakpoint" class="refentry">
|
||||
<div class="refnamediv">
|
||||
<h1 class="refname">apd_breakpoint</h1>
|
||||
<p class="verinfo">(PECL apd >= 0.2)</p><p class="refpurpose"><span class="refname">apd_breakpoint</span> — <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">说明</h3>
|
||||
<div class="methodsynopsis dc-description">
|
||||
<span class="methodname"><strong>apd_breakpoint</strong></span>
|
||||
( <span class="methodparam"><span class="type">int</span> <code class="parameter">$debug_level</code></span>
|
||||
) : <span class="type">bool</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">参数</h3>
|
||||
<p class="para">
|
||||
<dl>
|
||||
|
||||
<dt>
|
||||
<code class="parameter">
|
||||
debug_level</code></dt>
|
||||
<dd>
|
||||
<p class="para">由加上 <em>XXX_TRACE</em>
|
||||
常量而形成的整数。</p><p class="para">不建议使用
|
||||
<strong><code>MEMORY_TRACE</code></strong>。这会很慢且似乎不精确。
|
||||
<strong><code>ASSIGNMENT_TRACE</code></strong> 还未被实现。</p><p class="para">要打开所有跟踪功能(TIMING, FUNCTIONS, ARGS SUMMARY (比如 strace -c)) 则使用 99 作为值。</p>
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 returnvalues" id="refsect1-function.apd-breakpoint-returnvalues">
|
||||
<h3 class="title">返回值</h3>
|
||||
<p class="para">
|
||||
成功时返回 <strong><code>TRUE</code></strong>, 或者在失败时返回 <strong><code>FALSE</code></strong>。
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 examples" id="refsect1-function.apd-breakpoint-examples">
|
||||
<h3 class="title">范例</h3>
|
||||
<p class="para">
|
||||
<div class="example" id="example-426">
|
||||
<p><strong>Example #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)
|
||||
>\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);</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<!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 class="docs"><div id="layout">
|
||||
<div id="layout-content"><div id="function.apd-breakpoint" class="refentry">
|
||||
<div class="refnamediv">
|
||||
<h1 class="refname">apd_breakpoint</h1>
|
||||
<p class="verinfo">(PECL apd >= 0.2)</p><p class="refpurpose"><span class="refname">apd_breakpoint</span> — <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">说明</h3>
|
||||
<div class="methodsynopsis dc-description">
|
||||
<span class="methodname"><strong>apd_breakpoint</strong></span>
|
||||
( <span class="methodparam"><span class="type">int</span> <code class="parameter">$debug_level</code></span>
|
||||
) : <span class="type">bool</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">参数</h3>
|
||||
<p class="para">
|
||||
<dl>
|
||||
|
||||
<dt>
|
||||
<code class="parameter">
|
||||
debug_level</code></dt>
|
||||
<dd>
|
||||
<p class="para">由加上 <em>XXX_TRACE</em>
|
||||
常量而形成的整数。</p><p class="para">不建议使用
|
||||
<strong><code>MEMORY_TRACE</code></strong>。这会很慢且似乎不精确。
|
||||
<strong><code>ASSIGNMENT_TRACE</code></strong> 还未被实现。</p><p class="para">要打开所有跟踪功能(TIMING, FUNCTIONS, ARGS SUMMARY (比如 strace -c)) 则使用 99 作为值。</p>
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 returnvalues" id="refsect1-function.apd-breakpoint-returnvalues">
|
||||
<h3 class="title">返回值</h3>
|
||||
<p class="para">
|
||||
成功时返回 <strong><code>TRUE</code></strong>, 或者在失败时返回 <strong><code>FALSE</code></strong>。
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 examples" id="refsect1-function.apd-breakpoint-examples">
|
||||
<h3 class="title">范例</h3>
|
||||
<p class="para">
|
||||
<div class="example" id="example-426">
|
||||
<p><strong>Example #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)
|
||||
>\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);</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div></div></div></body></html>
|
Reference in New Issue
Block a user