(PECL apd >= 0.2)
apd_set_session_trace_socket — Starts the remote session debugging
$tcp_server
, int $socket_type
, int $port
, int $debug_level
) : bool
Connects to the specified tcp_server
(eg. tcplisten)
and sends debugging data to the socket.
tcp_server
IP or Unix Domain socket (like a file) of the TCP server.
socket_type
Can be AF_UNIX
for file based sockets or
APD_AF_INET
for standard tcp/ip.
port
You can use any port, but higher numbers are better as most of the lower numbers may be used by other system services.
debug_level
锟缴硷拷锟斤拷 XXX_TRACE 锟斤拷锟斤拷锟斤拷锟轿成碉拷锟斤拷锟斤拷锟斤拷
锟斤拷锟斤拷锟斤拷使锟斤拷
MEMORY_TRACE
锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟狡猴拷锟斤拷锟斤拷确锟斤拷
ASSIGNMENT_TRACE
锟斤拷未锟斤拷实锟街★拷
要锟斤拷锟斤拷锟叫革拷锟劫癸拷锟斤拷(TIMING, FUNCTIONS, ARGS SUMMARY (锟斤拷锟斤拷 strace -c)) 锟斤拷使锟斤拷 99 锟斤拷为值锟斤拷
锟缴癸拷时锟斤拷锟斤拷 TRUE
锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE
锟斤拷
Example #1 apd_set_session_trace_socket() example
<?php
apd_set_session_trace_socket("127.0.0.1",APD_AF_INET,7112,0);
?>