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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 assertEquals(4, step_count); | 59 assertEquals(4, step_count); |
60 | 60 |
61 // Clear the breakpoint and check that no stepping happens. | 61 // Clear the breakpoint and check that no stepping happens. |
62 Debug.clearBreakPoint(bp); | 62 Debug.clearBreakPoint(bp); |
63 prepare_step_test(); | 63 prepare_step_test(); |
64 f(); | 64 f(); |
65 assertEquals(0, step_count); | 65 assertEquals(0, step_count); |
66 | 66 |
67 // Get rid of the debug event listener. | 67 // Get rid of the debug event listener. |
68 Debug.setListener(null); | 68 Debug.setListener(null); |
OLD | NEW |