Skip to content

Commit

Permalink
Move low-level debugger connection handling into jerry-ext.
Browse files Browse the repository at this point in the history
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
  • Loading branch information
zherczeg committed Jul 16, 2018
1 parent 5f4a220 commit d75ce18
Show file tree
Hide file tree
Showing 13 changed files with 680 additions and 518 deletions.
22 changes: 0 additions & 22 deletions jerry-core/api/jerry-debugger.c
Expand Up @@ -16,8 +16,6 @@
#include "debugger.h"
#include "jcontext.h"
#include "jerryscript.h"
#include "debugger-tcp.h"
#include "debugger-ws.h"

/**
* Checks whether the debugger is connected.
Expand Down Expand Up @@ -91,26 +89,6 @@ jerry_debugger_stop_at_breakpoint (bool enable_stop_at_breakpoint) /**< enable/d
#endif /* JERRY_DEBUGGER */
} /* jerry_debugger_stop_at_breakpoint */

/**
* Debugger server initialization. Must be called after jerry_init.
*/
void
jerry_debugger_init (uint16_t port) /**< server port number */
{
#ifdef JERRY_DEBUGGER
if (!jerry_debugger_tcp_create (port)
|| !jerry_debugger_ws_create ())
{
jerry_debugger_transport_close ();
return;
}

jerry_debugger_transport_start ();
#else /* !JERRY_DEBUGGER */
JERRY_UNUSED (port);
#endif /* JERRY_DEBUGGER */
} /* jerry_debugger_init */

/**
* Sets whether the engine should wait and run a source.
*
Expand Down

0 comments on commit d75ce18

Please sign in to comment.