User Tools

Site Tools


uphp:functions:debug

Differences

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

Link to this comparison view

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======
-<badge>WMPRO FW > 1.0</badge> <badge>WMMEGA FW > 2.0</badge>+ 
 +<badge>WMPRO FW >1.0</badge> <badge>WMMEGA FW >2.0</badge>
  
 Print to debug output Print to debug output
  
 ====Description==== ====Description====
 +
 <well size="sm"><html> <well size="sm"><html>
-<span style="font-size:125%;></html>[[debug]] <html>(  +<span style="font-size:125%">debug (  
-<span style="font-size:125%;color:green;">string  +<span style="color:green">string 
-<span style="color:blue;">$str  +<span style="color:blue">$output 
-<span style="color:black;">)+<span style="color:black">)
 </html></well> </html></well>
  
-====Parameters==== +====Parameter==== 
-<html><span style="color:blue;"><b>str</b><span style="color:black;"></html>:  A string to output+ 
 +<html><b><span style="color:blue">$output<span style="color:black"></b>:  A <b><span style="color:green">string<span style="color:black"></b> to output</html> 
 + 
 +====Return Values====
  
-====Return Value==== 
 None None
  
 ====Example==== ====Example====
-<code php><?  + 
-debug("This is a debug message"); +<code php> 
-//this will appear on the serial port if connected to a console +<? 
-?></code>+  debug("This is a debug message"); 
 +  // this will appear on the serial port if connected to a console 
 +?> 
 +</code>
  
 ====See Also==== ====See Also====
-[[uphp:serial_port_programming]] - Some information on connecting and using the serial port+ 
 +[[how_tos:Serial Port Programming]] - Some information on connecting and using the serial ports
  
 [[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 data to the current output stream such as a web page or terminal+[[print()]] - Print data to the current output stream such as a web page or terminal
  
uphp/functions/debug.1487602482.txt.gz · Last modified: 2021/09/13 05:56 (external edit)