forked from facebook/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbreak-debugger.js
More file actions
27 lines (24 loc) · 812 Bytes
/
break-debugger.js
File metadata and controls
27 lines (24 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// RUN: %hdb --break-at-start %s < %s.debug | %FileCheck --match-full-lines %s
// REQUIRES: debugger
print('first');
debugger;
print('second');
debugger;
print('third');
// CHECK: Break on script load in global: {{.*}}:11:1
// CHECK-NEXT: Set breakpoint 1 at {{.*}}:12:1
// CHECK-NEXT: Set breakpoint 2 at {{.*}}:14:1
// CHECK-NEXT: Continuing execution
// CHECK-NEXT: first
// CHECK-NEXT: Break on breakpoint 1 in global: {{.*}}:12:1
// CHECK-NEXT: Continuing execution
// CHECK-NEXT: second
// CHECK-NEXT: Break on breakpoint 2 in global: {{.*}}:14:1
// CHECK-NEXT: Stepped to global: {{.*}}:15:1
// CHECK-NEXT: third