Send every kind of output to the debugger client

Now correctly sending jerry_port_log output to the debugger client as well.

JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
This commit is contained in:
Daniel Balla
2017-09-06 12:14:24 +02:00
committed by yichoi
parent c21c21f9f9
commit c8b99d05e1
6 changed files with 41 additions and 17 deletions
+5 -5
View File
@@ -48,10 +48,10 @@ typedef enum
} jerry_log_level_t;
/**
* Display or log a debug/error message. The function should implement a printf-like
* interface, where the first argument specifies the log level
* and the second argument specifies a format string on how to stringify the rest
* of the parameter list.
* Display or log a debug/error message, and sends it to the debugger client as well.
* The function should implement a printf-like interface, where the first argument
* specifies the log level and the second argument specifies a format string on how
* to stringify the rest of the parameter list.
*
* This function is only called with messages coming from the jerry engine as
* the result of some abnormal operation or describing its internal operations
@@ -230,4 +230,4 @@ jerry_port_get_current_instance (void)
{
return current_instance_p;
} /* jerry_port_get_current_instance */
```
```
-1
View File
@@ -291,7 +291,6 @@ jerry_debugger_wait_and_run_client_source (jerry_value_t *return_value)
**Summary**
Sends the program's output to the debugger client.
At the moment only the JS print size is implemented.
**Prototype**