File: print.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 (65 lines) | stat: -rw-r--r-- 1,741 bytes parent folder | download
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
59
60
61
62
63
64
65
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> c
Debugger statement, toplevel at print.debugger.js:69:1
db> # Simple types
db> print a
$1 = undefined
db> p b
$2 = null
db> p c
$3 = 42
db> p d
$4 = "some string"
db> p e
$5 = false
db> p f
$6 = true
db> p g
$7 = Symbol("foobar")
db> # Objects
db> print h
$8 = [object Array]
[1, "money", 2, "show", { three: "to", get ready: "go cat go" }]
db> print/b h
$9 = [object Array]
[object Array]
db> print/p h
$10 = [object Array]
[1, "money", 2, "show", { three: "to", get ready: "go cat go" }]
db> p i
$11 = [object Object]
{ some: "plain object", that: "has keys", with: null, and: undefined }
db> p/b i
$12 = [object Object]
[object Object]
db> p j
$13 = [object Set]
{}
db> p k
$14 = [object Function]
[ Function: J ]
db> p/b k
$15 = [object Function]
[object Function]
db> p l
$16 = [object GObject_Object]
[object instance wrapper GIName:GObject.Object jsobj@0xADDR native@0xADDR]
db> p m
$17 = [object Error]
Error: message
db> p n
$18 = [object Object]
{ a: 1 }
db> p o
$19 = [object Object]
{ some: "plain object", [Symbol("that")]: "has symbols" }
db> p p
$20 = [object Object]
{ meaningOfLife: 42, childVisible: { meaningOfLife: 42, #privateField: 1, #subPrivateField: 2 }, #privateField: 1, #subPrivateField: 2, #child: { meaningOfLife: 42, #privateField: 1, #subPrivateField: 2 }, #customToStringChild: Custom child!, #circular1: { n: { n: [Circular] } }, #circular2: [Circular], #selfRef: [Circular], #date: 2025-01-07T00:53:42.417Z, #privateFunc: [ Function:  ] }
db> p q
$21 = [object Object]
{ toString: null, #test: 1 }
db> c
Program exited with code 0