Rework address setup (#1589)
JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu
This commit is contained in:
committed by
László Langó
parent
b02ef67cd2
commit
33138c09f5
@@ -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,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,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,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,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,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)
|
||||
|
||||
Reference in New Issue
Block a user