Make debugger port runtime configurable
Convert debug server port from a compile-time constant to a context variable. This enables each engine instance (either running in the same process or in different processes) to listen for connections at different ports, i.e., multiple engines can be debugged at the same time on the same machine. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
@@ -121,6 +121,7 @@ typedef struct
|
||||
uint8_t debugger_message_delay; /**< call receive message when reaches zero */
|
||||
uint16_t debugger_receive_buffer_offset; /**< receive buffer offset */
|
||||
int debugger_connection; /**< holds the file descriptor of the socket communication */
|
||||
uint16_t debugger_port; /**< debugger socket communication port */
|
||||
#endif /* JERRY_DEBUGGER */
|
||||
|
||||
#ifdef JMEM_STATS
|
||||
|
||||
Reference in New Issue
Block a user