( ! ) Warning: session_start(): open(/tmp/sess_a4ff1aef7e1f9bd3ed1c3a98211a8c18, O_RDWR) failed: Disk quota exceeded (122) in /www/noahlabs/jwee/init.php on line 7
Call Stack
#TimeMemoryFunctionLocation
10.0010384248{main}( ).../index.php:0
20.0014397520include( '/www/noahlabs/jwee/init.php' ).../index.php:3
30.0014397520session_start ( ).../init.php:7
Variables in local scope (#2)
$Browser =
/www/noahlabs/jwee/init.php:7:*uninitialized*
$Session =
/www/noahlabs/jwee/init.php:7:*uninitialized*

( ! ) Warning: session_start(): Failed to read session data: files (path: /tmp) in /www/noahlabs/jwee/init.php on line 7
Call Stack
#TimeMemoryFunctionLocation
10.0010384248{main}( ).../index.php:0
20.0014397520include( '/www/noahlabs/jwee/init.php' ).../index.php:3
30.0014397520session_start ( ).../init.php:7
Variables in local scope (#2)
$Browser =
/www/noahlabs/jwee/init.php:7:*uninitialized*
$Session =
/www/noahlabs/jwee/init.php:7:*uninitialized*
Using Jwee's Development & Debugging Tools - Noah Ellman - Javascript Toolkit
mrspoonzy at gmail Cube by Noah Ellman A powerful javascript toolkit, in research © by Noah Ellman

Using Jwee's Development & Debugging Tools

This article will teach you how to debug and troubleshoot your Javascript code with Jwee's developement tools.

One of the cool aspects of jwee is the built-in development tools. It helps us to build jwee and it will help you to use jwee, if you take advantage of it. The debugging tools are an optional add-on. While writing code during developement time, you would want to use a jwee package with debugging. When its time to launch your code into production, repackage jwee without debugging.

Jwee's Debugging Console

Jwee has its own javascript console, logger, and even its own DOM inspector.

  • To view the log console, press the CONTROL-SHIFT-ALT-D key. (Try it now!)
  • To view the command console and log console, hit CONTROL-SHIFT-ALT-D. Here you can type any javascript statement, expression, or object. If you type an expression that results in an object, the DOM inspector will automatically open. You can continue to inspect the additional objects by clicking on them. Clicking on the background of the DOM inspector will go back to the previous object. Try it!
  • Hitting ESC, once or numerous times, will hide any debugging frames one by one..

How to output to the log

  • Use jwee's logging function trace().

Instead of using console.log, or alert heaven forbid, use jwee's trace() function. It is a global function, and can be called from anywhere at anytime. It can be called before the page loads as well. If the browser's own console is open (such as firebug in firefox), trace() will also output to there. When you hit the CONTROL-SHIFT-ALT-D key, while viewing a page, jwee's console will fly in. Hit ESC to hide it.

The trace() function takes a string, or multiple strings. Here is an example of usage:

// You can output like this

trace( "I got here - note to self" );

// You can output variables

var X = "foo";
trace( "Variable X equals " + X );

// Its often easer to pass variables as additional arguments
// Jwee will automatically add spaces in the output

trace( "Variable X equals", X );

Discussion on /learn/how-to-debug-and-troubleshoot-your-code




Jwee Ninja 11/05/14 :  

variable()


Jwee Ninja 11/05/14 :  

function() { var test; };


Jwee Ninja 11/05/14 :  

function( target ) { wee.ajax.get( target , function( response ){ var data = response.text; eval( " ajax_data = data " ); }); return ajax_data;


Jwee Ninja 11/05/14 :  

function( target ) { wee.ajax.get( target , function( response ){ var data = response.text; eval( " ajax_data = data " ); }); return ajax_data;


Jwee Ninja 11/05/14 :  

Aren't you picky!