summaryrefslogtreecommitdiff
path: root/installed-tests/debugger/list.debugger.output
blob: ce7857ab4b8d33413acd3bd27cbfa0884aa5fcf5 (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
GJS debugger. Type "help" for help
db> # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
db> # SPDX-FileCopyrightText: 2021 Mantoh Nasah Kuma <nasahnash20@gmail.com>
db> set colors false
db> list
   6	    else if (a === undefined || b === undefined)
   7	        return undefined;
   8	    else
   9	        return a / b;
   10	}
  *11	divide();
db> list 4
   1	// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
   2	// SPDX-FileCopyrightText: 2021 Mantoh Nasah Kuma <nasahnash20@gmail.com>
   3	function divide(a, b) {
  *4	    if (b === 0)
   5	        return undefined;
   6	    else if (a === undefined || b === undefined)
   7	        return undefined;
   8	    else
   9	        return a / b;
db> list 11
   6	    else if (a === undefined || b === undefined)
   7	        return undefined;
   8	    else
   9	        return a / b;
   10	}
  *11	divide();
db> list 12
   7	        return undefined;
   8	    else
   9	        return a / b;
   10	}
   11	divide();
db> list 0
   1	// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
   2	// SPDX-FileCopyrightText: 2021 Mantoh Nasah Kuma <nasahnash20@gmail.com>
   3	function divide(a, b) {
   4	    if (b === 0)
   5	        return undefined;
db> list divide
Unknown option
db> break 4
Breakpoint 1 at list.debugger.js:4:8
db> c
Breakpoint 1, divide() at list.debugger.js:4:8
db> list
   1	// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
   2	// SPDX-FileCopyrightText: 2021 Mantoh Nasah Kuma <nasahnash20@gmail.com>
   3	function divide(a, b) {
  *4	    if (b === 0)
   5	        return undefined;
   6	    else if (a === undefined || b === undefined)
   7	        return undefined;
   8	    else
   9	        return a / b;
db> q
Program exited with code 0