From 86e3d0dad7d981410208cdd34dcc637862ed8413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 15 Feb 2026 21:49:29 +0100 Subject: [PATCH] Debug listening info. --- .../flash/configuration/Configuration.java | 4 ++++ .../jpexs/decompiler/flash/gui/MainFrameMenu.java | 9 ++++++--- .../gui/locales/AdvancedSettingsDialog.properties | 4 ++++ .../gui/locales/AdvancedSettingsDialog_cs.properties | 4 ++++ .../flash/gui/locales/MainFrame.properties | 10 +++++++++- .../flash/gui/locales/MainFrame_cs.properties | 12 +++++++++++- 6 files changed, 38 insertions(+), 5 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/Configuration.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/Configuration.java index 266ecaafa..d23ce2bba 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/Configuration.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/Configuration.java @@ -1193,6 +1193,10 @@ public final class Configuration { @ConfigurationCategory("export") public static ConfigurationItem lastExportMorphNumberOfFrames = null; + @ConfigurationDefaultBoolean(true) + @ConfigurationCategory("ui") + public static ConfigurationItem showDebugListenInfo = null; + private static Map configurationDescriptions = new LinkedHashMap<>(); private static Map configurationTitles = new LinkedHashMap<>(); diff --git a/src/com/jpexs/decompiler/flash/gui/MainFrameMenu.java b/src/com/jpexs/decompiler/flash/gui/MainFrameMenu.java index 0df223f68..586d65652 100644 --- a/src/com/jpexs/decompiler/flash/gui/MainFrameMenu.java +++ b/src/com/jpexs/decompiler/flash/gui/MainFrameMenu.java @@ -1739,9 +1739,12 @@ public abstract class MainFrameMenu implements MenuBuilder { return true; } - public boolean debugListenActionPerformed(ActionEvent evt) { - Main.startDebugListening(); - return true; + public void debugListenActionPerformed(ActionEvent evt) { + if (ViewMessages.showConfirmDialog(mainFrame.getPanel(), "
" + translate("message.info.debugListen").replace("\n", "
") + "
", translate("message.info"), JOptionPane.OK_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE, Configuration.showDebugListenInfo, JOptionPane.OK_OPTION) != JOptionPane.OK_OPTION) { + return; + } + + Main.startDebugListening(); } public boolean debugPCodeActionPerformed(ActionEvent evt) { diff --git a/src/com/jpexs/decompiler/flash/gui/locales/AdvancedSettingsDialog.properties b/src/com/jpexs/decompiler/flash/gui/locales/AdvancedSettingsDialog.properties index 142ec9de5..b44b799b1 100644 --- a/src/com/jpexs/decompiler/flash/gui/locales/AdvancedSettingsDialog.properties +++ b/src/com/jpexs/decompiler/flash/gui/locales/AdvancedSettingsDialog.properties @@ -661,3 +661,7 @@ config.description.lastExportMorphDuration = Last setting of export morphshape d config.name.lastExportMorphNumberOfFrames = Last setting of export morph number of frames config.description.lastExportMorphNumberOfFrames = Last setting of export morphshape number of frames. + +#after 25.0.0 +config.name.showDebugListenInfo = Zobrazit informaci p\u0159ed naslouch\u00e1n\u00edm lad\u011bn\u00ed +config.description.showDebugListenInfo = Zobraz\u00ed informace o tom jak naslouch\u00e1n\u00ed lad\u011bn\u00ed funguje po kliku na Naslouchat lad\u011bn\u00ed v menu. diff --git a/src/com/jpexs/decompiler/flash/gui/locales/AdvancedSettingsDialog_cs.properties b/src/com/jpexs/decompiler/flash/gui/locales/AdvancedSettingsDialog_cs.properties index d26892706..df0b849ab 100644 --- a/src/com/jpexs/decompiler/flash/gui/locales/AdvancedSettingsDialog_cs.properties +++ b/src/com/jpexs/decompiler/flash/gui/locales/AdvancedSettingsDialog_cs.properties @@ -661,3 +661,7 @@ config.description.lastExportMorphDuration = Posledn\u00ed nastaven\u00ed export config.name.lastExportMorphNumberOfFrames = Posledn\u00ed nastaven\u00ed po\u010dtu sn\u00edmk\u016f prom\u011bny p\u0159i exportu config.description.lastExportMorphNumberOfFrames = Posledn\u00ed nastaven\u00ed exportu morphshape - po\u010det sn\u00edmk\u016f. + +#after 25.0.0 +config.name.showDebugListenInfo = Show information before debug listening +config.description.showDebugListenInfo = Displays some info about how debug listening works after clicking Debug listen in the menu. diff --git a/src/com/jpexs/decompiler/flash/gui/locales/MainFrame.properties b/src/com/jpexs/decompiler/flash/gui/locales/MainFrame.properties index 18f11d0d8..35af43779 100644 --- a/src/com/jpexs/decompiler/flash/gui/locales/MainFrame.properties +++ b/src/com/jpexs/decompiler/flash/gui/locales/MainFrame.properties @@ -1115,4 +1115,12 @@ contextmenu.prepareDebug.generateSwd = Prepare file for debugging (+ generate SW prepareDebug.title = Hit Save to overwrite current file or select another file. work.halted.with = Debugging of %file% started, execution halted. Add breakpoints and click Continue (F5) to resume running. debug.session = Session %id% -debug.session.running = (Running) \ No newline at end of file +debug.session.running = (Running) +message.info.debugListen = The listening action allows you to run SWF files via external \n\ + debug player and also for example web browser debug plugins. \n\n\ + For this to work, it requires all files that you want\n\ + to debug to be prepared for debugging first.\n\ + You can prepare SWF with context menu action "Prepare file for debugging".\n\ + Unprepared files will be ignored by the debugger!\n\n\ + Tip: If you want just Debug SWF in the standalone content debugger,\n\ + use "Debug" action instead, because that will prepare SWF automatically.\n\n \ No newline at end of file diff --git a/src/com/jpexs/decompiler/flash/gui/locales/MainFrame_cs.properties b/src/com/jpexs/decompiler/flash/gui/locales/MainFrame_cs.properties index ca4f06a7e..0ceaf938e 100644 --- a/src/com/jpexs/decompiler/flash/gui/locales/MainFrame_cs.properties +++ b/src/com/jpexs/decompiler/flash/gui/locales/MainFrame_cs.properties @@ -1113,4 +1113,14 @@ contextmenu.prepareDebug.injectDebug = P\u0159ipravit soubor pro lad\u011bn\u00e contextmenu.prepareDebug.generateSwd = P\u0159ipravit soubor pro lad\u011bn\u00ed (+ vytvo\u0159it SWD) prepareDebug.title = Stiskni Ulo\u017eit pro p\u0159eps\u00e1n\u00ed nyn\u011bj\u0161\u00edhio souboru nebo vyber soubor jin\u00fd. work.halted.with = Lad\u011bn\u00ed %file% za\u010dalo, b\u011bh je nyn\u00ed pozastaven. P\u0159idejte breakpointy a klikn\u011bte na Pokra\u010dovat (F5) pro obnoven\u00ed b\u011bhu. -debug.session = Sezen\u00ed %id% \ No newline at end of file +debug.session = Sezen\u00ed %id% +debug.session.running = (B\u011b\u017e\u00ed) +message.info.debugListen = Akce naslouch\u00e1n\u00ed v\u00e1m umo\u017en\u00ed spou\u0161t\u011bt SWF soubory p\u0159es extern\u00ed \n\ + debug flash player a tak\u00e9 nap\u0159\u00edklad p\u0159es debug pluginy do webov\u00fdch prohl\u00ed\u017ee\u010d\u016f. \n\n\ + Aby toto fungovalo, vy\u017eaduje to, aby ve\u0161ker\u00e9 soubory, kter\u00e9 chcete\n\ + ladit, aby byly p\u0159edem p\u0159ipraveny pro lad\u011bn\u00ed.\n\ + P\u0159ipravit SWF soubory pro lad\u011bn\u00ed m\u016f\u017eete p\u0159es akci kontextov\u00e9ho\n\ + menu s n\u00e1zvem "P\u0159ipravit soubor pro lad\u011bn\u00ed".\n\ + Nep\u0159ipraven\u00e9 soubory budou v debuggeru ignorov\u00e1ny!\n\n\ + Tip: Pokud chcete pouze ladit SWF v standalone content debuggeru,\n\ + pou\u017eijte m\u00edsto toho akci "Ladit", proto\u017ee ta p\u0159ipravuje SWF automaticky.\n\n \ No newline at end of file