From 217d82852aefd7afa8f20356eec7bd0bf48834e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 12 Jul 2015 12:08:46 +0200 Subject: [PATCH] debug one method switch --- .../com/jpexs/decompiler/flash/abc/types/MethodBody.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/MethodBody.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/MethodBody.java index 78dddb48a..51ce8e3b2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/MethodBody.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/MethodBody.java @@ -54,6 +54,8 @@ public final class MethodBody implements Cloneable { private static final Logger logger = Logger.getLogger(MethodBody.class.getName()); + private static final String DEBUG_FIXED = null; + @Internal public boolean deleted; @@ -274,7 +276,7 @@ public final class MethodBody implements Cloneable { if (exportMode != ScriptExportMode.AS) { getCode().toASMSource(constants, trait, method_info.get(this.method_info), this, exportMode, writer); } else { - if (!Configuration.decompile.get()) { + if ((DEBUG_FIXED != null && !path.endsWith(DEBUG_FIXED)) || (!Configuration.decompile.get())) { writer.appendNoHilight(Helper.getDecompilationSkippedComment()).newLine(); return; } @@ -317,7 +319,7 @@ public final class MethodBody implements Cloneable { if (exportMode != ScriptExportMode.AS) { getCode().toASMSource(constants, trait, method_info.get(this.method_info), this, exportMode, writer); } else { - if (!Configuration.decompile.get()) { + if ((DEBUG_FIXED != null && !path.endsWith(DEBUG_FIXED)) || (!Configuration.decompile.get())) { //writer.startMethod(this.method_info); writer.appendNoHilight(Helper.getDecompilationSkippedComment()).newLine(); //writer.endMethod();