v5:userguide:debug
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
reference:debug [2015/11/23 00:40] – mnewnham | v5:userguide:debug [2018/07/02 13:06] – prefer functions start lowercase (#430) peterdd | ||
---|---|---|---|
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 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. |
===== Usage ===== | ===== Usage ===== | ||
The debug option can be enabled and disabled at any time, to debug portions of a program. The earliest it can be enabled is after the inclusion of the driver, and before the connection. In the following example, the table name is spelled incorrectly (it should be **products**). When run without debugging, the execution of the statement simply returns false. | The debug option can be enabled and disabled at any time, to debug portions of a program. The earliest it can be enabled is after the inclusion of the driver, and before the connection. In the following example, the table name is spelled incorrectly (it should be **products**). When run without debugging, the execution of the statement simply returns false. | ||
Line 18: | Line 18: | ||
$conn-> | $conn-> | ||
/* | /* | ||
- | * Invalid syntax in select statment/ | + | * Invalid syntax in select statment |
- | *. | + | */ |
- | $recordSet = $conn->Execute(' | + | $recordSet = $conn->execute(' |
</ | </ | ||
The information returned on STDOUT is: | The information returned on STDOUT is: | ||
Line 49: | Line 49: | ||
* Historically, | * Historically, | ||
* 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> |
v5/userguide/debug.txt · Last modified: 2024/01/09 11:20 by dregad