Debug stepping through for loop

13 views
Skip to first unread message

exercising camel

unread,
Aug 21, 2015, 10:44:20 AM8/21/15
to Google Chrome Developer Tools
for ([initialization]; [condition]; [final-expression])
   statement

When stepping through a for loop the light blue (background) highlighting "thing"
(which indicates the next statement/expression to be executed)
highlights incorrectly the "subparts" ([initialization], [condition], [final-expression]).

I think this is the case even for the "normal" for loop formating like:

for (var i = 0; i < array.length; i++) {
    var element = array[i];
}

But for more "esoteric" formattings like:

for (var i = 0, ii = array.length;
    i < ii;
    i++) {
    var element = array[i];
}

it's even more inaccurate and confusing.

PhistucK

unread,
Aug 21, 2015, 5:30:28 PM8/21/15
to Google Chrome Developer Tools
You can search crbug.com for an existing issue and star it. If you cannot find one, file a new issue using the "New issue" link on the same page.
Please, do not add a "+1" or "Me too" or "Confirmed" (or similar) comment. It just wastes the time of Chrome engineers and sends unnecessary e-mails to all of the people who starred the issue.

You can reply with a link to the found or created issue and might get triaged (and fixed) faster.

Thank you.



PhistucK

--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/27c71eef-5139-47fc-93f3-e3252b87c655%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yury Semikhatsky

unread,
Aug 21, 2015, 6:04:40 PM8/21/15
to Google Chrome Developer Tools
I filed a bug on this: crbug.com/523543

Reply all
Reply to author
Forward
0 new messages