Add source sending feature to the debugger. (#1932)
With this feature the debugger webIDE and the python client can able to send a source code to the debugger while that is running in wait mode. This feature can be activated with the --debugger-wait-source switch and the debugger will wait for the source messages. If every message part are received the debugger will continue the exectuion with the initalized options. JerryScript-DCO-1.0-Signed-off-by: Imre Kiss kissi.szeged@partner.samsung.com
This commit is contained in:
committed by
Zoltan Herczeg
parent
a3885be6ce
commit
3e3d6373b8
@@ -27,6 +27,15 @@ extern "C"
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* Types for the client source wait and run method.
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
JERRY_DEBUGGER_SOURCE_RECEIVE_FAILED = 0, /**< source is not received */
|
||||
JERRY_DEBUGGER_SOURCE_RECEIVED = 1, /**< the source has been received */
|
||||
} jerry_debugger_wait_and_run_type_t;
|
||||
|
||||
/**
|
||||
* Engine debugger functions.
|
||||
*/
|
||||
@@ -34,6 +43,7 @@ bool jerry_debugger_is_connected (void);
|
||||
void jerry_debugger_stop (void);
|
||||
void jerry_debugger_continue (void);
|
||||
void jerry_debugger_stop_at_breakpoint (bool enable_stop_at_breakpoint);
|
||||
jerry_debugger_wait_and_run_type_t jerry_debugger_wait_and_run_client_source (jerry_value_t *return_value);
|
||||
|
||||
void jerry_debugger_init (uint16_t port);
|
||||
void jerry_debugger_cleanup (void);
|
||||
|
||||
Reference in New Issue
Block a user