Class YConsole
Defined in: YConsole.js.
Constructor Attributes | Constructor Name and Description |
---|---|
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. |
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 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 :
Advanced use exemple :
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= 8 0 ;
YConsole.MAX_LOG_STR_LENGTH= 3 0 0 ;
...
YConsole.show( ) ;
Field Detail
{string}
docking
determine where the console is hanging(default="left").
availables values are : "left","right","top","bottom".
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.
Activates the console if necessary.