Send output to debugger client (#1955)

Sending the output to the debugger client, at the moment only the JS side prints are sent over.

JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
This commit is contained in:
Daniel Balla
2017-08-30 16:01:06 +02:00
committed by László Langó
parent e897858c64
commit 733f0ceea0
17 changed files with 172 additions and 7 deletions
+6
View File
@@ -1,9 +1,15 @@
Connecting to: localhost:5001
Stopped at tests/debugger/client_source.js:15
(jerry-debugger) s
out: client-source-test
Stopped at tests/debugger/client_source.js:40
(jerry-debugger) s
Stopped at tests/debugger/client_source.js:35 (in test() at line:33, col:1)
(jerry-debugger) s
out: function test
Stopped at tests/debugger/client_source.js:36 (in test() at line:33, col:1)
(jerry-debugger) continue
out: function foo
out: function bar
out: function finish
out: finish: test-foo-bar
@@ -1,15 +1,22 @@
Connecting to: localhost:5001
Stopped at tests/debugger/client_source_multiple_2.js:15
(jerry-debugger) n
out: multiple-client-source-test-file-2
Stopped at tests/debugger/client_source_multiple_1.js:15
(jerry-debugger) n
out: multiple-client-source-test-file-1
Stopped at tests/debugger/client_source_multiple_1.js:27
(jerry-debugger) s
Stopped at tests/debugger/client_source_multiple_1.js:18 (in foo() at line:17, col:1)
(jerry-debugger) s
out: foo
Stopped at tests/debugger/client_source_multiple_1.js:19 (in foo() at line:17, col:1)
(jerry-debugger) s
Stopped at tests/debugger/client_source_multiple_2.js:18 (in bar() at line:17, col:1)
(jerry-debugger) s
out: bar
Stopped at tests/debugger/client_source_multiple_2.js:19 (in bar() at line:17, col:1)
(jerry-debugger) c
out: str-argument: called-from-test-file-1
out: crossFoo
out: str-argument: called-from-test-file-2
+4
View File
@@ -1,6 +1,7 @@
Connecting to: localhost:5001
Stopped at tests/debugger/do_backtrace.js:15
(jerry-debugger) next
out: backtrace-test
Stopped at tests/debugger/do_backtrace.js:28
(jerry-debugger) n
Stopped at tests/debugger/do_backtrace.js:37
@@ -9,6 +10,7 @@ Stopped at tests/debugger/do_backtrace.js:40
(jerry-debugger) step
Stopped at tests/debugger/do_backtrace.js:32 (in test() at line:30, col:1)
(jerry-debugger) next
out: function test
Stopped at tests/debugger/do_backtrace.js:33 (in test() at line:30, col:1)
(jerry-debugger) s
Stopped at tests/debugger/do_backtrace.js:23 (in foo() at line:21, col:1)
@@ -17,6 +19,7 @@ Frame 0: tests/debugger/do_backtrace.js:23 (in foo() at line:21, col:1)
Frame 1: tests/debugger/do_backtrace.js:33 (in test() at line:30, col:1)
Frame 2: tests/debugger/do_backtrace.js:40
(jerry-debugger) n
out: function foo
Stopped at tests/debugger/do_backtrace.js:24 (in foo() at line:21, col:1)
(jerry-debugger) n
Stopped at tests/debugger/do_backtrace.js:25 (in foo() at line:21, col:1)
@@ -28,3 +31,4 @@ Frame 1: tests/debugger/do_backtrace.js:25 (in foo() at line:21, col:1)
Frame 2: tests/debugger/do_backtrace.js:33 (in test() at line:30, col:1)
Frame 3: tests/debugger/do_backtrace.js:40
(jerry-debugger) c
out: function f4
+3
View File
@@ -14,6 +14,8 @@ Breakpoint 4 at tests/debugger/do_break.js:45 (in f() at line:43, col:1)
3: tests/debugger/do_break.js:33 (in f() at line:31, col:3)
4: tests/debugger/do_break.js:45 (in f() at line:43, col:1)
(jerry-debugger) c
out: break test
out: var cat
Stopped at breakpoint:1 tests/debugger/do_break.js:51
(jerry-debugger) delete 1
(jerry-debugger) list
@@ -24,5 +26,6 @@ Stopped at breakpoint:1 tests/debugger/do_break.js:51
(jerry-debugger) c
Stopped at breakpoint:2 tests/debugger/do_break.js:36 (in test() at line:20, col:1)
(jerry-debugger) continue
out: function test
Stopped at breakpoint:3 tests/debugger/do_break.js:33 (in f() at line:31, col:3)
(jerry-debugger) c
+1
View File
@@ -1,6 +1,7 @@
Connecting to: localhost:5001
Stopped at tests/debugger/do_delete.js:15
(jerry-debugger) next
out: delete tests
Stopped at tests/debugger/do_delete.js:17
(jerry-debugger) b do_delete.js:17
Breakpoint 1 at tests/debugger/do_delete.js:17
+4
View File
@@ -14,6 +14,7 @@ Non-negative integer number expected, 0 turns off this function
Stopped at breakpoint:1 tests/debugger/do_display.js:15 (in a() at line:15, col:1)
(jerry-debugger) display 2
(jerry-debugger) c
out: hi
Stopped at breakpoint:2 tests/debugger/do_display.js:16 (in b() at line:16, col:1)
Source: tests/debugger/do_display.js
15 function a() { print("hi"); }
@@ -21,6 +22,7 @@ Source: tests/debugger/do_display.js
17 function c() { print("hello"); }
(jerry-debugger) display 5435
(jerry-debugger) c
out: welcome
Stopped at breakpoint:3 tests/debugger/do_display.js:17 (in c() at line:17, col:1)
Source: tests/debugger/do_display.js
1 // Copyright JS Foundation and other contributors, http://js.foundation
@@ -48,5 +50,7 @@ Source: tests/debugger/do_display.js
23 d();
(jerry-debugger) display 0
(jerry-debugger) c
out: hello
Stopped at breakpoint:4 tests/debugger/do_display.js:18 (in d() at line:18, col:1)
(jerry-debugger) c
out: goodbye
+1
View File
@@ -5,3 +5,4 @@ Stopped at tests/debugger/do_eval_syntax.js:26
(jerry-debugger) eval loop
Uncaught exception: Error
(jerry-debugger) c
out: bar function
+1
View File
@@ -1,6 +1,7 @@
Connecting to: localhost:5001
Stopped at tests/debugger/do_exception.js:15
(jerry-debugger) c
out: exception handler configuration test
Exception throw detected (to disable automatic stop type exception 0)
Exception hint: TypeError
Stopped around tests/debugger/do_exception.js:19 (in foo() at line:17, col:1)
+2
View File
@@ -1,7 +1,9 @@
Connecting to: localhost:5001
Stopped at tests/debugger/do_next.js:15
(jerry-debugger) next
out: next test
Stopped at tests/debugger/do_next.js:17
(jerry-debugger) next
out: var cat
Stopped at tests/debugger/do_next.js:18
(jerry-debugger) c
@@ -7,6 +7,7 @@ Pending breakpoint at f()
=== Pending breakpoints ===
1: f() (pending)
(jerry-debugger) n
out: pending-breakpoints
Stopped at tests/debugger/do_pending_breakpoints.js:17
(jerry-debugger) n
Breakpoint 2 at <unknown>:1 (in f() at line:1, col:1)
+2
View File
@@ -5,6 +5,7 @@ Breakpoint 1 at tests/debugger/do_src.js:16 (in f() at line:15, col:1)
(jerry-debugger) n
Stopped at breakpoint:1 tests/debugger/do_src.js:16 (in f() at line:15, col:1)
(jerry-debugger) next
out: F1
Stopped at tests/debugger/do_src.js:20
(jerry-debugger) s
Stopped at <unknown>:1
@@ -16,3 +17,4 @@ Stopped at tests/debugger/do_src.js:21
Stopped at <unknown>:2 (in f() at line:1, col:5)
(jerry-debugger) src
(jerry-debugger) c
out: F2