Closed ctf0 closed 8 years ago
This is how it should work right now. Is it not working for you?
It depends on the statement. In some cases it switches to logging the right side of the statement rather than the first. But this usually happens if you have a function definition or something (eg var $xyz = function(a,b) { // produces console.log('$xyz', 'a:', a, 'b:', b);
when logged downwards)
i use the upward, and for some reason am getting console.log('L14')
or something like that
also the var it self is just getting the value of an input with jquery.
EDIT is there a debug option to check what is the errors in the console ?
btw am on OSX 10.11 ST 3109
Hmm, you can check errors if you simply open up the Sublime Console (View -> Show Console) or "ctrl + "). But can you give me the exact line? Perhaps it has trouble parsing it and it simply falls back to
L14` without spitting out any errors.
no errors in console and here is what i have
function main() {
var $window = $(window).outerHeight(true);
var $footer = $('.footer').outerHeight(true);
var $nav = $('.navbar').outerHeight(true);
var $total = $window - ($nav + $footer);
console.log('L8')
}
the #8
change according to the line, it could be 5,15,80,etc...
You're logging downwards or upwards? When you're on line $total...
and log downwards it should output the variables nicely. It only considers the line your cursor is on so logging upwards would not produce anything useful in that case (when on line {
).
got it all working now, i mis-understood how it works, u should put the cursor over the var or the thing u want to log then use the plugin, as b4 i was having it on the empty line under the var i want to log, thanx again for ur support :metal:
is there anyway u could add the ability to also log the vars ? like