apd_set_session_trace

(PECL apd 0.2-0.4) Starts the session debugging void apd_set_session_trace ( int $debug_level [, string $dump_directory = ini_get("apd.dumpdir") ] ) Starts debugging to apd_dump_{process_id} in the dump directory. Parameters: debug_level An integer which is formed by adding together the XXX_TRACE constants. It is not recommended to use MEMORY_TRACE. It is very slow and d

apd_set_session_trace_socket

(PECL apd >= 0.2) Starts the remote session debugging bool apd_set_session_trace_socket ( string $tcp_server, int $socket_type, int $port, int $debug_level ) Connects to the specified tcp_server (eg. tcplisten) and sends debugging data to the socket. Parameters: tcp_server IP or Unix Domain socket (like a file) of the TCP server. socket_type

apd_set_pprof_trace

(PECL apd >= 0.2) Starts the session debugging string apd_set_pprof_trace ([ string $dump_directory = ini_get("apd.dumpdir") [, string $fragment = "pprof" ]] ) Starts debugging to pprof_{process_id} in the dump directory. Parameters: dump_directory The directory in which the profile dump file is written. If not set, the apd.dumpdir setting from the php.ini file is us

apd_get_active_symbols

(PECL apd 0.2) Get an array of the current variables names in the local scope array apd_get_active_symbols ( void ) Returns the names of all the variables defined in the active scope, (not their values). Returns: A multidimensional array with all the variables. Examples: apd_get_active_symbols() example <?php apd_echo(

apd_echo

(PECL apd >= 0.2) Echo to the debugging socket bool apd_echo ( string $output ) Usually sent via the socket to request information about the running script. Parameters: output The debugged variable. Returns: Returns TRUE on success or FALSE on failure. Examples: apd_echo() example

apd_dump_regular_resources

(PECL apd 0.2-0.4) Return all current regular resources as an array array apd_dump_regular_resources ( void ) Return all current regular resources as an array. Returns: An array containing the current regular resources. Examples: apd_dump_regular_resources() example <?php print_r(apd_dump_regular_resources()); ?>

apd_dump_persistent_resources

(PECL apd 0.2-0.4) Return all persistent resources as an array array apd_dump_persistent_resources ( void ) Return all persistent resources as an array. Returns: An array containing the current call stack. Examples: apd_dump_persistent_resources() example <?php print_r(apd_dump_persistent_resources()); ?>

apd_dump_function_table

(Unknown) Outputs the current function table void apd_dump_function_table ( void ) Outputs the current function table. Returns: No value is returned. Examples: apd_dump_function_table() example <?php apd_dump_function_table(); ?>

apd_croak

(PECL apd 0.2-0.4) Throw an error, a callstack and then exit void apd_croak ( string $warning [, string $delimiter = "<BR />" ] ) Behaves like perl's Carp::croak. Throw an error, a callstack and then exit. Parameters: warning The warning to throw. delimiter The delimiter. Default to <BR />. Returns:

apd_continue

(PECL apd >= 0.2) Restarts the interpreter bool apd_continue ( int $debug_level ) Usually sent via the socket to restart the interpreter. Parameters: debug_level An integer which is formed by adding together the XXX_TRACE constants. It is not recommended to use MEMORY_TRACE. It is very slow and does not appear to be accurate. ASSIGNMENT_TRACE is not implemented yet. To