• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<script>
2function test()
3{
4    debugger;
5}
6
7var object = { test: 1 };
8
9for (var property in object)
10    test();
11</script>
12
13<p>To test, open the DevTools (Ctrl+Shift+I) and reload the page. When the debugger breaks, select
14the (anonymous function) node in the call stack, you should see the execution line on the call to test().
15<br><br>
16Also set a breakpoint on the call to test(), and reload. It should break before the test() function is called.
17