Add finish debugger command. (#2240)

With this command the engine continue running just after the function
in the current stack frame returns.

JerryScript-DCO-1.0-Signed-off-by: Imre Kiss kissi.szeged@partner.samsung.com
This commit is contained in:
Imre Kiss
2018-03-12 14:42:48 +01:00
committed by László Langó
parent 685af74a10
commit a79c217aa0
9 changed files with 117 additions and 18 deletions
+20
View File
@@ -0,0 +1,20 @@
Connecting to: localhost:5001
Stopped at tests/debugger/do_finish.js:15
(jerry-debugger) finish
out: finish-test
Stopped at tests/debugger/do_finish.js:26
(jerry-debugger) finish
Stopped at tests/debugger/do_finish.js:18 (in foo() at line:17, col:1)
(jerry-debugger) finish
out: foo
out: bar
Stopped at tests/debugger/do_finish.js:42
(jerry-debugger) step
Stopped at tests/debugger/do_finish.js:29 (in dog() at line:28, col:1)
(jerry-debugger) finish
out: *bark*
out: *sit*
out: *bark*
Stopped at tests/debugger/do_finish.js:44
(jerry-debugger) continue
out: END: finish-test