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:48] – [Description] Remove reference to STDERR dregad | v5:userguide:debug [2024/01/09 11:20] (current) – [Description] link to Logging page dregad | ||
---|---|---|---|
Line 9: | Line 9: | ||
===== Description ===== | ===== Description ===== | ||
- | Enabling debug mode makes the driver return | + | 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-> | ||
</ | </ |
v5/userguide/debug.1680961692.txt.gz · Last modified: 2023/04/08 15:48 by dregad