Add Python wrapper for the HTML-based debugger (#1736)

The patch aims at easing the startup of the HTML-based JerryScript
debugger client by adding a python script that starts the default
browser with the HTML page implementing the debugger client.
Additionally, the pyton script encodes the host:port address
information of the debug server in the file url and the HTML client
is extended to retrieve this information. Thus, both the console
and the browser-based debugger client can be started similarly.

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
Akos Kiss
2017-04-22 03:55:39 +02:00
committed by yichoi
parent 6c3a6e7be3
commit 66ade0d81c
2 changed files with 45 additions and 1 deletions
+13 -1
View File
@@ -72,8 +72,20 @@ var textBox = document.getElementById("log");
var commandBox = document.getElementById("command");
var socket = null;
var address = "localhost";
var params = window.location.search.slice(1).split("&");
for (var i = 0; i < params.length; i++)
{
var nv = params[i].split("=");
var name = nv[0], value = nv[1];
if (name == "address")
{
address = value;
}
}
textBox.value = ""
commandBox.value = "connect localhost"
commandBox.value = "connect " + address
function appendLog(str)
{