Add watch stub... not working :-(, probably bug of adobe.

This commit is contained in:
Jindra Petřík
2015-12-06 10:18:37 +01:00
parent 167f4e9c4f
commit 9123a3a646
5 changed files with 128 additions and 10 deletions
@@ -17,6 +17,8 @@
package com.jpexs.decompiler.flash.gui;
import com.jpexs.debugger.flash.Debugger;
import com.jpexs.debugger.flash.DebuggerCommands;
import com.jpexs.debugger.flash.Variable;
import com.jpexs.decompiler.flash.ApplicationInfo;
import com.jpexs.decompiler.flash.EventListener;
import com.jpexs.decompiler.flash.SWF;
@@ -195,6 +197,11 @@ public class Main {
return runProcess != null && !runProcessDebug;
}
public static synchronized boolean addWatch(Variable v, long v_id, boolean watchRead, boolean watchWrite) {
DebuggerCommands.Watch w = getDebugHandler().addWatch(v, v_id, watchRead, watchWrite);
return w != null;
}
public static void runPlayer(String title, final String exePath, String file, String flashVars) {
if (flashVars != null && !flashVars.isEmpty()) {
file += "?" + flashVars;