This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:debugout [2017/03/18 18:14] jeff |
uphp:functions:debugout [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
======debugout====== | ======debugout====== | ||
+ | |||
< | < | ||
Line 5: | Line 6: | ||
====Description==== | ====Description==== | ||
- | <well size=" | + | |
- | < | + | <well size=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
+ | <span style=" | ||
</ | </ | ||
Sets the status of debug messages on the telnet console | Sets the status of debug messages on the telnet console | ||
- | ====Parameters==== | + | ====Parameter==== |
- | < | + | |
+ | <html><b>< | ||
+ | |||
+ | ====Return Values==== | ||
- | ====Return Value==== | ||
None | None | ||
====Example==== | ====Example==== | ||
+ | |||
+ | ===Do nothing for 10 seconds during which time all debug alerts appear on the console=== | ||
+ | |||
<code php> | <code php> | ||
<? | <? | ||
max_execution_time(10); | max_execution_time(10); | ||
debugout(1); | debugout(1); | ||
- | while (1); // this will do nothing for 10 seconds during which time all debug alerts will appear on the console | + | while (1); |
?> | ?> | ||
</ | </ | ||
====See Also==== | ====See Also==== | ||
+ | |||
[[debug()]] - Print to debug output | [[debug()]] - Print to debug output | ||
[[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 |
- | [[max_execution_time()]] - Set maximum execution time in seconds | + | [[max_execution_time()]] - Set the maximum execution time for the current script |