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 = {}