add examples to console instructions - bug 3137
authorPaul Beusterien <paulb@symbian.org>
Fri, 02 Jul 2010 15:35:47 -0700
changeset 419 f99d33a2e33a
parent 418 4a55666ac86b
child 420 716a505be7b8
add examples to console instructions - bug 3137
org.symbian.tools.wrttools.previewer/preview/wrt_preview.html
--- a/org.symbian.tools.wrttools.previewer/preview/wrt_preview.html	Fri Jul 02 14:39:04 2010 -0700
+++ b/org.symbian.tools.wrttools.previewer/preview/wrt_preview.html	Fri Jul 02 15:35:47 2010 -0700
@@ -94,7 +94,14 @@
 			<span id="Console-Clear-Button"></span>
 			<div style="clear:left;"></div>
 			<div id="preview-ui-bottom-body" class="Console">
-				<p id="hint">Use window.console object log, debug, info, warn and error methods to output debug information. All methods can format strings if supplied arguments in printf format.</p>
+				<p id="hint">Use window.console object log, debug, info, warn and error methods 
+				to output debug information. All methods can format strings if supplied arguments 
+				in printf format.<br><b>Examples:</b></br>
+				<br>	window.console.log('log %d', 123);</br>
+				<br>	window.console.debug('debug %s', "string");</br>
+				<br>	window.console.info('info %s', "string " + 123);</br>
+				<br>	window.console.warn('warn %f', 123.456);</br>
+				<br>	window.console.error('error');</br></p>
 			</div>
 		</div>
 		<div id="event-acceleration" class="hide">