I\'m trying to debug a JavaScript onFocus
event attached to a bunch of text boxes on a page. The bug occurs when selecting a text box and then tabbing to the next
You are right, Chrome DevTools receive focus and do not restore it when you switch back to the debugged page. Feel free to file a bug at http://new.crbug.com (make sure you start the summary with "DevTools: " so that the bug can be assigned to the appropriate team as quickly as possible.)
On a side note, console.log()
is a slightly better alternative to alert()
as it allows formatted output.