This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:debug [2017/02/20 14:54] jeff |
uphp:functions:debug [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
======debug====== | ======debug====== | ||
- | < | + | |
+ | < | ||
Print to debug output | Print to debug output | ||
====Description==== | ====Description==== | ||
+ | |||
<well size=" | <well size=" | ||
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
</ | </ | ||
- | ====Parameters==== | + | ====Parameter==== |
- | < | + | |
+ | <html><b>< | ||
+ | |||
+ | ====Return Values==== | ||
- | ====Return Value==== | ||
None | None | ||
====Example==== | ====Example==== | ||
- | <code php><? | + | |
- | debug(" | + | <code php> |
- | //this will appear on the serial port if connected to a console | + | <? |
- | ?></ | + | debug(" |
+ | // this will appear on the serial port if connected to a console | ||
+ | ?> | ||
+ | </ | ||
====See Also==== | ====See Also==== | ||
- | [[uphp:serial_port_programming]] - Some information on connecting and using the serial | + | |
+ | [[how_tos:Serial Port Programming]] - Some information on connecting and using the serial | ||
[[debugout()]] - Enable or disable debug messages | [[debugout()]] - Enable or disable debug messages | ||
Line 31: | Line 39: | ||
[[error_reporting()]] - Set the debug output level | [[error_reporting()]] - Set the debug output level | ||
- | [[log()]] - Print to the System Log | + | [[log()]] - Print to the System Log (or optional file) |
- | [[print()]] - Output | + | [[print()]] - Print data to the current output stream such as a web page or terminal |