OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 const Debug = new DebugWrapper(); | 5 const Debug = new DebugWrapper(); |
6 Debug.enable(); | 6 Debug.enable(); |
7 | 7 |
8 // This test tests that full code compiled without debug break slots | 8 // This test tests that full code compiled without debug break slots |
9 // is recompiled with debug break slots when debugging is started. | 9 // is recompiled with debug break slots when debugging is started. |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // Step through the function ensuring that the var statements are hit as well. | 52 // Step through the function ensuring that the var statements are hit as well. |
53 prepare_step_test(); | 53 prepare_step_test(); |
54 f(); | 54 f(); |
55 assertEquals(4, step_count); | 55 assertEquals(4, step_count); |
56 | 56 |
57 // Clear the breakpoint and check that no stepping happens. | 57 // Clear the breakpoint and check that no stepping happens. |
58 Debug.clearBreakPoint(bp); | 58 Debug.clearBreakPoint(bp); |
59 prepare_step_test(); | 59 prepare_step_test(); |
60 f(); | 60 f(); |
61 assertEquals(0, step_count); | 61 assertEquals(0, step_count); |
OLD | NEW |