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 [2025/06/01 13:21] (current) – Remove square brackets in tags 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-> | ||
| </ | </ | ||
| 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.1680961692.txt.gz · Last modified: by dregad
