Added: Debugger - Remove watch

Added: Debugger - List of watches
Added: Debugger - Show flag of watch type (read/write)
Fixed: Debugger - Threading issues with multiple SWFs
Fixed: Debugger - Reading variables on 64bit flash players (like in browsers)
Enhanced debug game test SWFs
This commit is contained in:
Jindra Petřík
2026-02-22 18:33:27 +01:00
parent f447b4f286
commit 87f94768a0
36 changed files with 1239 additions and 369 deletions

View File

@@ -441,9 +441,13 @@ public class Main {
}
public static synchronized boolean addWatch(DebuggerSession session, Variable v, long v_id, boolean watchRead, boolean watchWrite) {
DebuggerCommands.Watch w = session.addWatch(v, v_id, watchRead, watchWrite);
DebuggerCommands.Watch w = session.addWatch(v.name, v_id, watchRead, watchWrite);
return w != null;
}
public static synchronized boolean removeWatch(DebuggerSession session, Variable v, long v_id) {
return session.removeWatch(v.name, v_id);
}
public static void runPlayer(String title, final String exePath, String file, String flashVars) {
if (!new File(file).exists()) {
@@ -1137,7 +1141,7 @@ public class Main {
}
public static void updateSession() {
DebuggerSession session = getCurrentDebugSession();
/*DebuggerSession session = getCurrentDebugSession();
for (DebuggerHandler.FrameChangeListener l : getDebugHandler().getFrameChangeListeners()) {
l.frameChanged(session);
}
@@ -1145,6 +1149,7 @@ public class Main {
if (getDebugHandler().getNumberOfPausedSessions() > 0) {
mainFrame.getPanel().showDebugStackFrame();
}
*/
}
public static void ensureMainFrame() {
@@ -3197,7 +3202,7 @@ public class Main {
@Override
public void disconnected(DebuggerSession session) {
Main.updateSession();
//Main.updateSession();
if (Main.mainFrame != null) {
Main.mainFrame.getMenu().updateComponents();
}