Rework address setup (#1589)

JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu
This commit is contained in:
Levente Orban
2017-02-20 09:12:49 +01:00
committed by László Langó
parent b02ef67cd2
commit 33138c09f5
6 changed files with 9 additions and 7 deletions
+4 -2
View File
@@ -338,11 +338,13 @@ class JerryDebugger(object):
def __init__(self, address):
if ":" not in address:
print("Wrong address settings: Use the 'IP:PORT' format.")
self.host = address
self.port = 5001 # use default port
else:
self.host, self.port = address.split(":")
self.port = int(self.port)
print("Address setup: %s:%s" % (self.host, self.port))
print("Connecting to: %s:%s" % (self.host, self.port))
self.message_data = b""
self.function_list = {}
+1 -1
View File
@@ -1,4 +1,4 @@
Address setup: localhost:5001
Connecting to: localhost:5001
Stopped at tests/debugger/do_backtrace.js:15
(jerry-debugger) Breakpoint 1 at tests/debugger/do_backtrace.js:32 (in f4)
(jerry-debugger) Stopped at breakpoint:1 tests/debugger/do_backtrace.js:32 (in f4)
+1 -1
View File
@@ -1,4 +1,4 @@
Address setup: localhost:5001
Connecting to: localhost:5001
Stopped at tests/debugger/do_break.js:15
(jerry-debugger) Breakpoint not found
(jerry-debugger) (jerry-debugger) Breakpoint not found
+1 -1
View File
@@ -1,4 +1,4 @@
Address setup: localhost:5001
Connecting to: localhost:5001
Stopped at tests/debugger/do_dump.js:15
(jerry-debugger) {68: Function(byte_code_cp:0x44, source:"tests/debugger/do_dump.js", name:"f4", { Breakpoint(line:32, offset:17, active_index:-1),Breakpoint(line:31, offset:16, active_index:-1) }),
79: Function(byte_code_cp:0x4f, source:"tests/debugger/do_dump.js", name:"f1", { Breakpoint(line:17, offset:21, active_index:-1),Breakpoint(line:27, offset:22, active_index:-1) }),
+1 -1
View File
@@ -1,4 +1,4 @@
Address setup: localhost:5001
Connecting to: localhost:5001
Stopped at tests/debugger/do_eval.js:15
(jerry-debugger) undefined
(jerry-debugger) Stopped at tests/debugger/do_eval.js:23
+1 -1
View File
@@ -1,4 +1,4 @@
Address setup: localhost:5001
Connecting to: localhost:5001
Stopped at tests/debugger/do_step.js:25
(jerry-debugger) Breakpoint 1 at tests/debugger/do_step.js:25
(jerry-debugger) Stopped at tests/debugger/do_step.js:15 (in f1)