Program: 61489
Project: 61489
Buggy source:
@Override public void connected(DebuggerConnection con){
  clearBreakPoints();
  Main.startWork(AppStrings.translate("String_Node_Str"),null);
synchronized (this) {
    paused=false;
  }
  Main.getMainFrame().getPanel().updateMenu();
  enlog(DebuggerHandler.class);
  try {
    con.getMessage(InVersion.class);
  }
 catch (  IOException ex) {
    Logger.getLogger(DebuggerHandler.class.getName()).log(Level.SEVERE,null,ex);
  }
  con.addMessageListener(new DebugMessageListener<InProcessTag>(){
    @Override public void message(    InProcessTag message){
      try {
        con.writeMessage(new OutProcessedTag(con));
      }
 catch (      IOException ex) {
      }
    }
  }
);
  Map<Integer,String> moduleNames=new HashMap<>();
  try {
    int numScript=con.getMessage(InNumScript.class).num;
    for (int i=0; i < numScript; i++) {
      InScript sc=con.getMessage(InScript.class);
      moduleNames.put(sc.module,sc.name);
    }
    modulePaths=new HashMap<>();
    classToModule=new HashMap<>();
    Pattern patAS3=Pattern.compile("String_Node_Str");
    for (    int file : moduleNames.keySet()) {
      String name=moduleNames.get(file);
      String[] parts=name.split("String_Node_Str");
      Matcher m;
      if ((m=patAS3.matcher(name)).matches()) {
        String clsName=m.group(3);
        String pkg=m.group(2).replace("String_Node_Str","String_Node_Str");
        name=DottedChain.parse(pkg).add(clsName).toString();
      }
      modulePaths.put(file,name);
      classToModule.put(name,file);
    }
    commands=new DebuggerCommands(con);
    commands.stopWarning();
    commands.setStopOnFault();
    commands.setEnumerateOverride();
    commands.setNotifyFailure();
    commands.setInvokeSetters();
    commands.setSwfLoadNotify();
    commands.setGetterTimeout(1500);
    commands.setSetterTimeout(5000);
    con.wideLines=commands.getOption("String_Node_Str","String_Node_Str").equals("String_Node_Str");
    if (con.wideLines) {
      commands.setOption("String_Node_Str","String_Node_Str");
    }
    commands.squelch(true);
    swfs=commands.getSwfInfo(1);
    con.sendMessage(new OutGetSwf(con,0),InGetSwf.class);
    InGetSwd iswd=con.sendMessage(new OutGetSwd(con,0),InGetSwd.class);
    boolean isAS3=(Main.getMainFrame().getPanel().getCurrentSwf().isAS3());
    InSetBreakpoint isb=con.getMessage(InSetBreakpoint.class);
synchronized (this) {
      for (int i=0; i < isb.files.size(); i++) {
        String sname=moduleNames.get(isb.files.get(i));
        if (!confirmedPointMap.containsKey(sname)) {
          confirmedPointMap.put(sname,new TreeSet<>());
        }
        if (toAddBPointMap.containsKey(sname)) {
          toAddBPointMap.get(sname).remove(isb.lines.get(i));
          if (toAddBPointMap.get(sname).isEmpty()) {
            toAddBPointMap.remove(sname);
          }
        }
        confirmedPointMap.get(sname).add(isb.lines.get(i));
        Logger.getLogger(DebuggerHandler.class.getName()).log(Level.INFO,"String_Node_Str",new Object[]{sname,isb.lines.get(i)});
      }
    }
synchronized (this) {
      connected=true;
    }
    con.addMessageListener(new DebugMessageListener<InAskBreakpoints>(){
      @Override public void message(      InAskBreakpoints message){
      }
    }
);
    con.addMessageListener(new DebugMessageListener<InContinue>(){
      @Override public void message(      InContinue msg){
synchronized (DebuggerHandler.this) {
          paused=false;
          Logger.getLogger(DebuggerHandler.class.getName()).log(Level.FINE,"String_Node_Str");
        }
        for (        BreakListener bl : breakListeners) {
          bl.doContinue();
        }
      }
    }
);
    con.addMessageListener(new DebugMessageListener<InBreakAt>(){
      @Override public void message(      InBreakAt message){
synchronized (DebuggerHandler.this) {
          paused=true;
          Logger.getLogger(DebuggerHandler.class.getName()).log(Level.FINE,"String_Node_Str");
        }
        String newBreakScriptName="String_Node_Str";
        if (modulePaths.containsKey(message.file)) {
          newBreakScriptName=modulePaths.get(message.file);
        }
        try {
          breakInfo=con.getMessage(InBreakAtExt.class);
          breakReason=con.sendMessage(new OutGetBreakReason(con),InBreakReason.class);
          final String[] reasonNames=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
          String reason=breakReason.reason < reasonNames.length ? reasonNames[breakReason.reason] : reasonNames[0];
          Logger.getLogger(DebuggerHandler.class.getName()).log(Level.FINE,"String_Node_Str",new Object[]{newBreakScriptName,message.line,reason});
          sendBreakPoints(false);
synchronized (DebuggerHandler.this) {
            breakScriptName=newBreakScriptName;
            breakIp=message.line;
          }
          if (breakReason.reason == InBreakReason.REASON_SCRIPT_LOADED) {
            if (!Configuration.debugHalt.get()) {
              commands.sendContinue();
              return;
            }
            Main.startWork(AppStrings.translate("String_Node_Str"),null);
          }
 else {
            Main.startWork(AppStrings.translate("String_Node_Str") + newBreakScriptName + "String_Node_Str"+ message.line+ "String_Node_Str"+ AppStrings.translate("String_Node_Str" + reason),null);
          }
          frame=commands.getFrame(0);
          for (          BreakListener l : breakListeners) {
            l.breakAt(newBreakScriptName,message.line);
          }
        }
 catch (        IOException ex) {
        }
      }
    }
);
    for (    ConnectionListener l : clisteners) {
      l.connected();
    }
    con.addMessageListener(new DebugMessageListener<InTrace>(){
      @Override public void message(      InTrace tr){
        for (        TraceListener l : traceListeners) {
          l.trace(tr.text);
        }
      }
    }
);
    if (!isAS3) {
      Logger.getLogger(DebuggerHandler.class.getName()).log(Level.FINER,"String_Node_Str");
      commands.sendContinue();
    }
  }
 catch (  IOException ex) {
synchronized (this) {
      connected=false;
    }
  }
}

Fixed version (ground truth):
@Override public void connected(DebuggerConnection con){
  clearBreakPoints();
  Main.startWork(AppStrings.translate("String_Node_Str"),null);
synchronized (this) {
    paused=false;
  }
  Main.getMainFrame().getPanel().updateMenu();
  enlog(DebuggerConnection.class);
  enlog(DebuggerCommands.class);
  enlog(DebuggerHandler.class);
  try {
    con.getMessage(InVersion.class);
  }
 catch (  IOException ex) {
    Logger.getLogger(DebuggerHandler.class.getName()).log(Level.SEVERE,null,ex);
  }
  con.addMessageListener(new DebugMessageListener<InProcessTag>(){
    @Override public void message(    InProcessTag message){
      try {
        con.writeMessage(new OutProcessedTag(con));
      }
 catch (      IOException ex) {
      }
    }
  }
);
  Map<Integer,String> moduleNames=new HashMap<>();
  try {
    int numScript=con.getMessage(InNumScript.class).num;
    for (int i=0; i < numScript; i++) {
      InScript sc=con.getMessage(InScript.class);
      moduleNames.put(sc.module,sc.name);
    }
    modulePaths=new HashMap<>();
    classToModule=new HashMap<>();
    Pattern patAS3=Pattern.compile("String_Node_Str");
    for (    int file : moduleNames.keySet()) {
      String name=moduleNames.get(file);
      String[] parts=name.split("String_Node_Str");
      Matcher m;
      if ((m=patAS3.matcher(name)).matches()) {
        String clsName=m.group(3);
        String pkg=m.group(2).replace("String_Node_Str","String_Node_Str");
        name=DottedChain.parse(pkg).add(clsName).toString();
      }
      modulePaths.put(file,name);
      classToModule.put(name,file);
    }
    commands=new DebuggerCommands(con);
    commands.stopWarning();
    commands.setStopOnFault();
    commands.setEnumerateOverride();
    commands.setNotifyFailure();
    commands.setInvokeSetters();
    commands.setSwfLoadNotify();
    commands.setGetterTimeout(1500);
    commands.setSetterTimeout(5000);
    commands.squelch(true);
    swfs=commands.getSwfInfo(1);
    con.sendMessage(new OutGetSwf(con,0),InGetSwf.class);
    InGetSwd iswd=con.sendMessage(new OutGetSwd(con,0),InGetSwd.class);
    boolean isAS3=(Main.getMainFrame().getPanel().getCurrentSwf().isAS3());
    InSetBreakpoint isb=con.getMessage(InSetBreakpoint.class);
synchronized (this) {
      for (int i=0; i < isb.files.size(); i++) {
        String sname=moduleNames.get(isb.files.get(i));
        if (!confirmedPointMap.containsKey(sname)) {
          confirmedPointMap.put(sname,new TreeSet<>());
        }
        if (toAddBPointMap.containsKey(sname)) {
          toAddBPointMap.get(sname).remove(isb.lines.get(i));
          if (toAddBPointMap.get(sname).isEmpty()) {
            toAddBPointMap.remove(sname);
          }
        }
        confirmedPointMap.get(sname).add(isb.lines.get(i));
        Logger.getLogger(DebuggerHandler.class.getName()).log(Level.INFO,"String_Node_Str",new Object[]{sname,isb.lines.get(i)});
      }
    }
synchronized (this) {
      connected=true;
    }
    con.addMessageListener(new DebugMessageListener<InAskBreakpoints>(){
      @Override public void message(      InAskBreakpoints message){
      }
    }
);
    con.addMessageListener(new DebugMessageListener<InContinue>(){
      @Override public void message(      InContinue msg){
synchronized (DebuggerHandler.this) {
          paused=false;
          Logger.getLogger(DebuggerHandler.class.getName()).log(Level.FINE,"String_Node_Str");
        }
        for (        BreakListener bl : breakListeners) {
          bl.doContinue();
        }
      }
    }
);
    con.addMessageListener(new DebugMessageListener<InBreakAt>(){
      @Override public void message(      InBreakAt message){
synchronized (DebuggerHandler.this) {
          paused=true;
          Logger.getLogger(DebuggerHandler.class.getName()).log(Level.FINE,"String_Node_Str");
        }
        String newBreakScriptName="String_Node_Str";
        if (modulePaths.containsKey(message.file)) {
          newBreakScriptName=modulePaths.get(message.file);
        }
 else {
          Logger.getLogger(DebuggerCommands.class.getName()).log(Level.SEVERE,"String_Node_Str" + message.file);
          return;
        }
        try {
          breakInfo=con.getMessage(InBreakAtExt.class);
          breakReason=con.sendMessage(new OutGetBreakReason(con),InBreakReason.class);
          final String[] reasonNames=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
          String reason=breakReason.reason < reasonNames.length ? reasonNames[breakReason.reason] : reasonNames[0];
          Logger.getLogger(DebuggerHandler.class.getName()).log(Level.FINE,"String_Node_Str",new Object[]{newBreakScriptName,message.line,reason});
          sendBreakPoints(false);
synchronized (DebuggerHandler.this) {
            breakScriptName=newBreakScriptName;
            breakIp=message.line;
          }
          if (breakReason.reason == InBreakReason.REASON_SCRIPT_LOADED) {
            if (!Configuration.debugHalt.get()) {
              commands.sendContinue();
              return;
            }
            Main.startWork(AppStrings.translate("String_Node_Str"),null);
          }
 else {
            Main.startWork(AppStrings.translate("String_Node_Str") + newBreakScriptName + "String_Node_Str"+ message.line+ "String_Node_Str"+ AppStrings.translate("String_Node_Str" + reason),null);
          }
          frame=commands.getFrame(0);
          for (          BreakListener l : breakListeners) {
            l.breakAt(newBreakScriptName,message.line);
          }
        }
 catch (        IOException ex) {
        }
      }
    }
);
    for (    ConnectionListener l : clisteners) {
      l.connected();
    }
    con.addMessageListener(new DebugMessageListener<InTrace>(){
      @Override public void message(      InTrace tr){
        for (        TraceListener l : traceListeners) {
          l.trace(tr.text);
        }
      }
    }
);
    if (!isAS3) {
      Logger.getLogger(DebuggerHandler.class.getName()).log(Level.FINER,"String_Node_Str");
      commands.sendContinue();
    }
  }
 catch (  IOException ex) {
synchronized (this) {
      connected=false;
    }
  }
}