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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user