Trace log, debug panel separated, better show/hide handling

This commit is contained in:
Jindra Petřík
2015-11-17 20:10:30 +01:00
parent 609bdf38e0
commit 40ed5a5f48
7 changed files with 363 additions and 118 deletions
@@ -164,6 +164,13 @@ public class Main {
private static int ip = 0;
private static ClassPath ipClass = null;
public static void debuggerNotSuspended() {
getDebugHandler().notSuspended();
mainFrame.getPanel().clearDebuggerColors();
ip = 0;
ipClass = null;
}
public static void clearBreakPoints(ScriptPack pack) {
if (breakPointMap.containsKey(pack)) {
breakPointMap.remove(pack);
@@ -1144,6 +1151,18 @@ public class Main {
*/
flashDebugger = new Debugger();
debugHandler = new DebuggerHandler();
debugHandler.addConnectionListener(new DebuggerHandler.ConnectionListener() {
@Override
public void connected() {
}
@Override
public void disconnected() {
ip = 0;
ipClass = null;
}
});
flashDebugger.addConnectionListener(debugHandler);
flashDebugger.start();
} catch (IOException ex) {