I was just playing around with jBox.js and i was checking the following lines of code:
if (this.options.position[p] == 'center') { this.pos[a] += Math.ceil((this.targetDimensions[p] - this.dimensions[p]) / 2); return; } Now the way the code is written before the above code executes the value of this.pos[a] is 18 and after the code executes the value of this.pos[a] is 25 , In my text editor i can add a console.log before and after the if condition and find out, But is the same possible using google dev tools ? Can i console.log inside the source tab in chrome dev tools ?
I am interested in knowing if i can add a console.log statement in the source tab and than run my code, To see the logs.
Thank you.
Alex-z.

this.pos[a]to you watched list and put in a break point at the line you first want to read.console.logis handy but its not for heavy lifting IMHO. developer.chrome.com/devtools/docs/javascript-debugging