public RemoteDebuggerClient(String ip, int port) throws Exception {
socket = new Socket(ip, port);
Thread thread = new Thread("SQL Remote Debugger Client on port " + port) {
@Override
public void run() {
DebuggerRegistryListener debuggerRegisterListener = null;
try {
final ObjectOutputStream out = new ObjectOutputStream(new BufferedOutputStream(socket.getOutputStream()));
debuggerRegisterListener = new DebuggerRegistryListener() {
@Override
public void notifyDebuggerListenersModified() {
try {
boolean isLogging = !DebuggerRegistry.getDebuggerList().isEmpty();
out.writeObject(new ServerLoggingActivationMessage(isLogging));