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
|
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> set ignoreCaughtExceptions false
db> c
Debugger statement, a() at throw.debugger.js:4:5
db> f 1
#1 toplevel at throw.debugger.js:9:5
9 a();
db> throw {}
To throw, you must select the newest frame (use 'frame 0')
db> f 0
#0 a() at throw.debugger.js:4:5
4 debugger;
db> p 3.14
$1 = 3.14
db> throw 'foobar' + $1
Unwinding due to exception. (Type 'c' to continue unwinding.)
#0 a() at throw.debugger.js:4:5
4 debugger;
Exception value is:
$2 = "foobar3.14"
db> fin
Run till exit from a() at throw.debugger.js:4:5
Frame terminated by exception:
$3 = "foobar3.14"
(To rethrow it, type 'throw'.)
Unwinding due to exception. (Type 'c' to continue unwinding.)
#0 toplevel at throw.debugger.js:9:5
9 a();
Exception value is:
$4 = "foobar3.14"
db> throw foo
Exception caught while evaluating foo: [object ReferenceError]
db> throw
Exception: foobar3.14
Program exited with code 0
|