Support abort in the debugger. (#2273)

Aborts are not caught by catch/finally blocks,
so it is possible to stop a script using the debugger.

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2018-04-11 13:59:13 +02:00
committed by GitHub
parent 5c0c21b26a
commit e91471727f
12 changed files with 183 additions and 66 deletions
+12
View File
@@ -0,0 +1,12 @@
Connecting to: localhost:5001
Stopped at tests/debugger/do_abort.js:24
(jerry-debugger) s
Stopped at tests/debugger/do_abort.js:25
(jerry-debugger) s
Stopped at tests/debugger/do_abort.js:26
(jerry-debugger) s
Stopped at tests/debugger/do_abort.js:20 (in g() at line:19, col:1)
(jerry-debugger) s
Stopped at tests/debugger/do_abort.js:16 (in f() at line:15, col:1)
(jerry-debugger) abort new Error('Fatal error :)')
err: Script Error: Error: Fatal error :)