new DebuggerHost(config)
A TCP based host that a Perl debugger can connect to.
Emits the following events:
- connection - When a client connects to the TCP server.
- disconnection - When a client disconnects from the TCP server.
- listening - When the TCP server is ready for clients.
- close - When the TCP server shuts down.
Parameters:
Name | Type | Description |
---|---|---|
config |
DebuggerHostConfiguration |
- Source:
Methods
close()
Instruct the host to stop listening for clients
Proxies net.Server.close
- Source:
commands() → {DebuggerCommands}
- Source:
Returns:
An interface for executing commands on the perl debugger.
- Type
- DebuggerCommands
listen()
Instruct the host to start listening for clients.
Proxies net.Server.listen
- Source:
on(event, handler)
Listen for events.
Parameters:
Name | Type | Description |
---|---|---|
event |
string | |
handler |
function |
- Source: