ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:userguide:debug

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
v5:userguide:debug [2022/08/21 19:11] – Updated the special options into the page mnewnhamv5:userguide:debug [2023/04/05 19:38] – [Special Options] dregad
Line 47: Line 47:
 </code> </code>
  
-By default, the parameters passed to each SQL statement to be executed are compressed into a set of key=>value pairs. This information is printed using the <code> tag if sent to a browser After the print of the SQL statement. An additional class "adodb-debug" can be used to apply styling to the statement.+By default, the parameters passed to each SQL statement to be executed are compressed into a set of key=>value pairs. This information is printed using the ''<code>'' tag if sent to a browser after the print of the SQL statement. An additional class "adodb-debug" can be used to apply styling to the statement.
  
 ===== Special Options ===== ===== Special Options =====
-There are 3 non-boolean switches that, if set, will vary some of the output produce+There are 3 non-boolean switches that, if set, will vary some of the output produced 
 ^Value^Description^ ^Value^Description^
 |99|If set, then the results of a debug_backtrace will be appended to every database execution, **//even if the execution is successful//**| |99|If set, then the results of a debug_backtrace will be appended to every database execution, **//even if the execution is successful//**|
 |-1|If set, and the code is being run in a browser, then the line separators around the statement are suppressed. This option has no effect when the code is run in a CLI environment.| |-1|If set, and the code is being run in a browser, then the line separators around the statement are suppressed. This option has no effect when the code is run in a CLI environment.|
-|-99|If set, then the SQL statement print is suppressed, reducing the amount of output to STDOUT |+|-99|If set, then the SQL statement print is suppressed **//if the execution succeeds//**, reducing the amount of output to STDOUT |
 ===== Limitations ===== ===== Limitations =====
  
v5/userguide/debug.txt · Last modified: 2024/01/09 11:20 by dregad