adsense


Thursday, 12 November 2015

ADVANCE VB SCRIPT DEBUG OBJECTS PAGE 118

COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button




ADVANCE VB SCRIPT DEBUG OBJECTS





Debug Objects 


The Debug Objects are global objects that can send output to 
a script debugger. Here, the debugger what we refer to is 
Microsoft Script Debugger. 
The Debug objects cannot be created like other objects but 
can be used when we are debugging. 
The following methods are supported by Debug Objects. 
These methods or objects have no effect if the script is 
NOT executed in debug mode. The Methods supported by Debug 
Objects are discussed in detail. 
Write 
The Write method sends strings to the immediate window of 
the Microsoft Script Debugger at run-time. If the script is not 
executed in debug mode, then the Write method has no effect. 
Write Debug.Write([str1 [, str2 [, ... [, strN]]]]) 

Example 

<!DOCTYPE html> 
<html> 
<body> 
<script language="vbscript" type="text/vbscript"> 
 
 Dim counter 
 counter = 42 
 Debug.Write "The value of counter is " & counter 
  
</script> 
</body> 
</html> 


No comments: