Class Index | File Index

Classes


Class YConsole


Defined in: YConsole.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
YConsole.js has been made to make js debugging easier under mobile with the lowest impact (no dependencies), exept for '.YConsole_' as a reserved css class name prefix and of course 'YConsole' as a reserved js var
get YConsole.
Field Summary
Field Attributes Field Name and Description
 
determine where the console is hanging(default="left").
 
max Array content preview length in logs(default=40).
 
max String preview length in logs(default=200).
 
max Array content preview length in Object explorer(default=20).
 
max String preview length in Object explorer(default=20).
 
Thickness of the resizers that separates the console pannel from the window or the Object explorer from the logs(default=3).
Method Summary
Method Attributes Method Name and Description
<static>  
YConsole.activate()
Call to activate the console so it can begin to intercept errors and console logs.
<static>  
YConsole.hide()
Call to hide the console.
<static>  
YConsole.show()
Call to show the console.
Class Detail
YConsole()
YConsole.js has been made to make js debugging easier under mobile with the lowest impact (no dependencies), exept for '.YConsole_' as a reserved css class name prefix and of course 'YConsole' as a reserved js var
get YConsole.

How to use :
< script type="text/javascript" src="js/YConsole-compiled.js">< /script>
< script type="text/javascript" >YConsole.show();< /script>
     

Advanced use exemple :
   YConsole.activate();
   console.log("first intercepted log.");
   YConsole.docking="right";
   YConsole.MAX_LOG_ARRAY_LENGTH=80;
   YConsole.MAX_LOG_STR_LENGTH=300;
   ...
   YConsole.show();
     
Field Detail
{string} docking
determine where the console is hanging(default="left").
availables values are : "left","right","top","bottom".

{int} MAX_LOG_ARRAY_LENGTH
max Array content preview length in logs(default=40).

{int} MAX_LOG_STR_LENGTH
max String preview length in logs(default=200).

{int} MAX_OBJ_ARRAY_LENGTH
max Array content preview length in Object explorer(default=20).

{int} MAX_OBJ_STR_LENGTH
max String preview length in Object explorer(default=20).

{int} SPLITTER_WIDTH
Thickness of the resizers that separates the console pannel from the window or the Object explorer from the logs(default=3).
Method Detail
<static> YConsole.activate()
Call to activate the console so it can begin to intercept errors and console logs.

<static> YConsole.hide()
Call to hide the console.

<static> YConsole.show()
Call to show the console.
Activates the console if necessary.

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Oct 05 2015 23:48:05 GMT+0200 (CEST)