Script Debugger: last line of block is highlighted instead of closing brace when stepping over.

36 views
Skip to first unread message

Victor Castillo Escoto

unread,
Jul 23, 2014, 3:05:12 PM7/23/14
to fir...@googlegroups.com
I've been looking for an issue related with this behavior and haven't been successful.

function foo()
{
  var someVar, someOtherVar, evenSomeOtherVar;

  if(true)
  {
    someVar='';
    someOtherVar=''; //after this line I expect to jump to the next closing braces
  }//expected jump
  else
  {
    evenSomeOtherVar='';
    evenSomeOtherVar=''; //but instead debugger highlights this line which happens to be the line immediately before the next closing brace
  }
};//expected jump

Event.observe(window, 'load', foo);

Has anyone else realized this is happening?
Is this due to some limitation?

Victor Castillo Escoto

unread,
Jan 8, 2015, 6:37:20 PM1/8/15
to fir...@googlegroups.com
No one? (haven't checked if continues to happen)

vce

Sebastian Zartner

unread,
Jan 19, 2015, 7:22:51 AM1/19/15
to fir...@googlegroups.com
Looks like this message got missed.

I would not expect the debugger to jump to the closing bracket of the if-block.
Though it is expected that the debugger jumps to the closing bracket of the function when it returns. This needs to be fixed on the platform and is covered in bug 1013219.

Sebastian
Reply all
Reply to author
Forward
0 new messages