Add restart command to the debugger (#2401)

With this feature the use can restart the actual debug session
(similar to the multiple source context reset) within a client.

JerryScript-DCO-1.0-Signed-off-by: Imre Kiss kissi.szeged@partner.samsung.com
This commit is contained in:
Imre Kiss
2018-06-22 05:18:18 +02:00
committed by yichoi
parent 35ac0e0445
commit e3265883fd
9 changed files with 205 additions and 94 deletions
+7 -1
View File
@@ -28,7 +28,7 @@ import math
import time
# Expected debugger protocol version.
JERRY_DEBUGGER_VERSION = 3
JERRY_DEBUGGER_VERSION = 4
# Messages sent by the server to client.
JERRY_DEBUGGER_CONFIGURATION = 1
@@ -513,6 +513,12 @@ class DebuggerPrompt(Cmd):
do_ms = do_memstats
def do_restart(self, _):
""" Restart the engine's debug session """
self._send_string(JERRY_DEBUGGER_EVAL_ABORT + "\"r353t\"", JERRY_DEBUGGER_EVAL)
do_res = do_restart
def store_client_sources(self, args):
self.client_sources = args