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

search for in the

apd_set_session_trace> <apd_set_pprof_trace
Last updated: Fri, 13 Nov 2009

view this page in

apd_set_session_trace_socket

(PECL apd >= 0.2)

apd_set_session_trace_socketリモートセッションのデバッグを開始する

説明

bool apd_set_session_trace_socket ( string $tcp_server , int $socket_type , int $port , int $debug_level )

指定した tcp_server (tcplisten など) に接続し、 デバッグデータをソケットに送信します。

パラメータ

tcp_server

TCP サーバの IP あるいは Unix ドメインソケット (ファイルなど)。

socket_type

ファイルベースのソケットなら AF_UNIX、 標準の tcp/ip なら APD_AF_INET

port

任意のポートを使用できますが、できるだけ大きめの数を使用するほうがいいでしょう。 小さい数は他のシステムサービスが使っている可能性があります。

debug_level

XXX_TRACE 定数の組み合わせによる整数値。

MEMORY_TRACE を用いることは推奨しません。 これは非常に低速で、またあまり正確ではないようだからです。 ASSIGNMENT_TRACE は、まだ実装されていません。

すべての機能 (TIMING, FUNCTIONS, ARGS SUMMARY (strace -c のようなもの)) のトレースを有効にするには、値 99 を指定します。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

例1 apd_set_session_trace_socket() の例

<?php
  apd_set_session_trace_socket
("127.0.0.1",APD_AF_INET,7112,0);
?>



add a note add a note User Contributed Notes
apd_set_session_trace_socket
There are no user contributed notes for this page.

apd_set_session_trace> <apd_set_pprof_trace
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites