mysqli::debug

mysqli_debug

(PHP 5, PHP 7, PHP 8)

mysqli::debug -- mysqli_debugPerforms debugging operations

Açıklama

Nesne yönelimli kullanım

publicmysqli::debug(string$options): true

Yordamsal kullanım

mysqli_debug(string$options): true

Performs debugging operations using the Fred Fish debugging library.

Bağımsız Değişkenler

options

A string representing the debugging operation to perform

The debug control string is a sequence of colon separated fields as follows:

<field_1>:<field_2>:<field_N>
Each field consists of a mandatory flag character followed by an optional , and comma separated list of modifiers: flag[,modifier,modifier,...,modifier]

Recognized Flag Characters
options characterDescription
OMYSQLND_DEBUG_FLUSH
A/aMYSQLND_DEBUG_APPEND
FMYSQLND_DEBUG_DUMP_FILE
iMYSQLND_DEBUG_DUMP_PID
LMYSQLND_DEBUG_DUMP_LINE
mMYSQLND_DEBUG_TRACE_MEMORY_CALLS
nMYSQLND_DEBUG_DUMP_LEVEL
ooutput to file
TMYSQLND_DEBUG_DUMP_TIME
tMYSQLND_DEBUG_DUMP_TRACE
xMYSQLND_DEBUG_PROFILE_CALLS

Dönen Değerler

Daima true döndürür.

Sürüm Bilgisi

Sürüm: Açıklama
8.0.0 This function now always returns true. Previously it returned false on failure.

Örnekler

Örnek 1 Generating a Trace File

<?php


mysqli_debug("d:t:o,/tmp/client.trace");

?>

Notlar

Bilginize:

To use the mysqli_debug() function you must compile the MySQL client library to support debugging.

Ayrıca Bakınız

To Top