javascript - Chrome debugger only stopping at first line -
the debugger stops on first line (if put breakpoint there), not stop if put breakpoint @ other line. when type 'debugger' in script, indeed pausing , showing me paused in correct javascript file, it's showing first line active line of execution.
var somevar = 0; //<-- stop here when put break point here $(document).ready(function() { debugger; //<-- makes stop shows first line active line alert('here!'); //<-- not stop breakpoint here, execute code });
i tried restarting chrome, , tried in canary, suprise showed exact same behaviour. behaviour happening 1 specific file. if empty , put in simple test code, remains same.
hmm. removed file , created again, , debugging works normal again
Comments
Post a Comment