File: return.debugger.output

package info (click to toggle)
gjs 1.86.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,724 kB
  • sloc: cpp: 39,075; javascript: 30,720; ansic: 15,971; sh: 1,759; python: 772; xml: 135; makefile: 40
file content (32 lines) | stat: -rw-r--r-- 880 bytes parent folder | download | duplicates (4)
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
GJS debugger. Type "help" for help
db> # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
db> # SPDX-FileCopyrightText: 2018 Philip Chimento <philip.chimento@gmail.com>
db> b 4
Breakpoint 1 at return.debugger.js:4:5
db> b 8
Breakpoint 2 at return.debugger.js:8:5
db> b 12
Breakpoint 3 at return.debugger.js:12:5
db> c
Breakpoint 1, func1() at return.debugger.js:4:5
db> f 1
#1    toplevel at return.debugger.js:15:7
   15	print(func1());
db> return
To return, you must select the newest frame (use 'frame 0')
db> f 0
#0    func1() at return.debugger.js:4:5
   4	    return 1;
db> return
undefined
Breakpoint 2, func2() at return.debugger.js:8:5
db> ret 5
5
Breakpoint 3, func3() at return.debugger.js:12:5
db> ret foo
Exception caught while evaluating foo: [object ReferenceError]
db> p 2
$1 = 2
db> ret `${4 * 10 + $1} is the answer`
42 is the answer
Program exited with code 0