Add minor features to debugger html client (#1705)
JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu
This commit is contained in:
committed by
Robert Sipka
parent
5f24620c8a
commit
a5b90ed858
@@ -7,26 +7,33 @@ JerryScript HTML (WebSocket) Debugger Client
|
|||||||
</title>
|
</title>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
|
background-color: #feffd6;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
textarea {
|
|
||||||
margin-bottom: 30px;
|
|
||||||
}
|
|
||||||
input {
|
input {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
width: 657px;
|
width: 650px;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
width: 750px;
|
||||||
|
margin-top: 30px;
|
||||||
|
resize: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<h2>JerryScript HTML (WebSocket) Debugger Client</h2>
|
<h2>JerryScript HTML (WebSocket) Debugger Client</h2>
|
||||||
|
<div class="container">
|
||||||
<textarea id="log" rows="20" cols="80"></textarea><br>
|
<div>
|
||||||
|
<textarea readonly rows="16" id="log"></textarea>
|
||||||
Getting help: type 'help' in the command line below.<br>
|
</div>
|
||||||
|
<p role="alert">Getting help: type <b>help</b> in the command line below.</p>
|
||||||
<input id="command" type="text" onkeypress="debuggerCommand(event); return true;">
|
<div>
|
||||||
|
<input id="command" rows="1" type="text" onkeypress="debuggerCommand(event); return true;">
|
||||||
|
<div>
|
||||||
|
</div>
|
||||||
<script>
|
<script>
|
||||||
var JERRY_DEBUGGER_CONFIGURATION = 1;
|
var JERRY_DEBUGGER_CONFIGURATION = 1;
|
||||||
var JERRY_DEBUGGER_PARSE_ERROR = 2;
|
var JERRY_DEBUGGER_PARSE_ERROR = 2;
|
||||||
@@ -71,6 +78,7 @@ commandBox.value = "connect localhost"
|
|||||||
function appendLog(str)
|
function appendLog(str)
|
||||||
{
|
{
|
||||||
textBox.value += str + "\n";
|
textBox.value += str + "\n";
|
||||||
|
textBox.scrollTop = textBox.scrollHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
var debuggerObj = null;
|
var debuggerObj = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user