v5:userguide:debug
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v5:userguide:debug [2023/04/08 15:47] – Moved "Special options" section within "Usage" section and renamed to "Possible values" dregad | v5:userguide:debug [2025/06/01 13:21] (current) – Remove square brackets in tags dregad | ||
---|---|---|---|
Line 8: | Line 8: | ||
===== Description ===== | ===== Description ===== | ||
- | Enabling debug mode makes the driver return copious amounts of debugging information from both ADOdb and the PHP driver itself. Information is displayed on both standard output (STDOUT) and standard error (STDERR) channels. | ||
+ | Enabling debug mode makes the driver return debugging information from both ADOdb and the PHP driver itself. | ||
+ | |||
+ | The output includes the executed SQL statement with parameters, as well as error messages and backtrace information if there are problems. | ||
+ | It is suitable for viewing in a browser (see [[# | ||
+ | |||
+ | See [[v5: | ||
===== Usage ===== | ===== Usage ===== | ||
Line 20: | Line 25: | ||
include ' | include ' | ||
$conn = newAdoConnection(' | $conn = newAdoConnection(' | ||
+ | |||
+ | # Here is the earliest point where Debug Mode can be set | ||
+ | |||
$conn-> | $conn-> | ||
+ | |||
+ | # Enable Debug mode | ||
$conn-> | $conn-> | ||
+ | |||
$recordSet = $conn-> | $recordSet = $conn-> | ||
</ | </ | ||
Line 97: | Line 108: | ||
* Some drivers, the SQL server driver in particular, produce overwhelming volumes of debugging information. | * Some drivers, the SQL server driver in particular, produce overwhelming volumes of debugging information. | ||
- | {{tag>[debugging]}} | + | {{tag> |
v5/userguide/debug.1680961647.txt.gz · Last modified: by dregad