v5:userguide:debug
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
reference:debug [2015/11/23 00:37] – created mnewnham | v5:userguide:debug [2016/01/17 03:46] – ↷ Page moved from v5:reference:debug to v5:userguide:debug mnewnham | ||
---|---|---|---|
Line 4: | Line 4: | ||
<WRAP right box> | <WRAP right box> | ||
== Syntax == | == Syntax == | ||
- | $connection-> | + | $connection-> |
</ | </ | ||
===== 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 14: | Line 14: | ||
<code php> | <code php> | ||
include '/ | include '/ | ||
- | $conn = newAdoConnection(' | + | $conn = newAdoConnection(' |
- | $conn-> | + | $conn-> |
$conn-> | $conn-> | ||
+ | /* | ||
+ | * Invalid syntax in select statment | ||
+ | */ | ||
$recordSet = $conn-> | $recordSet = $conn-> | ||
</ | </ | ||
Line 46: | 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