Hey Alex, We've got it, that was exactly what we thought, so the catch on InProgressException at function level was preventing other searches in already loaded modules, I simply enclosed the calls to findAndEnableBreak() with a catch on InProgressException and let the function search into the other swfs.
I will integrate the Alexander changes before to push all the commits. Thanks, Frédéric THOMAS > From: webdoubl...@hotmail.com > To: dev@flex.apache.org > Subject: RE: RE : RE : FDB vs FB debugging ? > Date: Wed, 15 Jan 2014 20:40:49 +0000 > > I'm debugging it right now with the IntelliJ project Alexander shared and I'm > at almost the same conclusion, will check that deeper tomorrow as I'll be > able to try it on my company project where the bug appears. > > I guess the exception thrown is a NPE which is catch later in doBreak() > though. > > I will take the opportunity I'm on it to commit the fixes Alexander did on > its fdb version too. > > Thanks for your time and your help Alex :-) > > Frédéric THOMAS > > > From: aha...@adobe.com > > To: dev@flex.apache.org > > Subject: Re: RE : RE : FDB vs FB debugging ? > > Date: Wed, 15 Jan 2014 20:33:17 +0000 > > > > The patch for FLEX-26768 (which was Adobe's SDK-29513) appears to be > > corrupted. > > > > In looking at the FDB code and the notes in FLEX-26768, I would guess that > > the patch changed code in enableBreak(). There is a loop through all > > known SWFs and an exception in the loop prevents other SWFs from being > > searched. > > > > There are Eclipse project files for FDB in the source tree > > (flex-sdk/modules/debugger). In theory you can debug that way. > > > > Good luck, > > -Alex > > > > > > On 1/15/14 1:20 AM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote: > > > > >Thanks Alex, that could be a way of investigation, will try to debug FDB, > > >never did it before you if you know how I should do that, you help would > > >be appreciated. > > > > > >References I found relative to this issue : > > > > > >https://issues.apache.org/jira/browse/FLEX-28870 > > > > > >https://issues.apache.org/jira/browse/FLEX-23989 > > >"It is bizarre that I experience this bug using fdb from flex sdk for > > >linux and windows, but the bug never appears when using Flash Builder 4." > > > > > >https://issues.apache.org/jira/browse/FLEX-26768 > > >"The problem was that when resolving brakepoint fdb traversed internal > > >collection of loaded swf's, and when InProgressException was thrown for > > >one SWF it exited the cycle. I have changed the code to catch and log > > >exception and continue to traverse swf files." > > > > > >http://devnet.jetbrains.com/thread/288328 > > > > > >Some of the above point to a patch > > >https://bugs.adobe.com/jira/browse/SDK-29513 which doesn't exist anymore > > >and the same number in our JIRA reference another issue. > > > > > >http://bugs.adobe.com/jira/browse/SDK-26466 > > >Doesn't exist anymore > > > > > >Thanks, > > >Frédéric THOMAS > > > > > >> From: aha...@adobe.com > > >> To: dev@flex.apache.org > > >> Subject: Re: RE : RE : FDB vs FB debugging ? > > >> Date: Tue, 14 Jan 2014 22:06:30 +0000 > > >> > > >> I don't know how FB uses FDB, but FB does seem to manage paths > > >> differently. This could change the search order for source files to > > >>match > > >> up against the SWF, but I don't think I've ever seen that. Could you > > >>have > > >> a stale copy of that source file somewhere else? I'd dump the SWF and > > >>see > > >> if the code does in fact match up. > > >> > > >> On 1/14/14 12:20 PM, "webdoublefx" <webdoubl...@hotmail.com> wrote: > > >> > > >> >I checked the debug flag was applied to the module too and I dont use > > >> >RSLs at all in this conf, the clue is that the same compiled files are > > >> >debuggable thru FB but not from FDB directly, so, not thru IntelliJ > > >> >either, what I dont know is how internaly, FB uses FDB, I was trying to > > >> >find something in that direction as people already reported this kind > > >>of > > >> >behavior either at Jetbrains or Adobe before, I havent got the links > > >> >right now as Im not at work but will link them tomorrow, at least for > > >> >reference > > >> > > > >> > > > >> >Envoyé depuis un mobile Samsung > > >> > > > >> ><div>-------- Message d'origine --------</div><div>De : Alex Harui > > >> ><aha...@adobe.com> </div><div>Date :14/01/2014 19:32 (GMT+00:00) > > >> ></div><div>A : dev@flex.apache.org </div><div>Objet : Re: RE : FDB vs > > >>FB > > >> >debugging ? </div><div> > > >> ></div> > > >> >Another possibility is that the class is already loaded or is coming > > >>from > > >> >an RSL and it is stale or the definition or the class is in a SWF that > > >> >does not have the debug flag set. > > >> > > > >> >On 1/14/14 11:26 AM, "webdoublefx" <webdoubl...@hotmail.com> wrote: > > >> > > > >> >>Actually, that's a freshly compiled module with the debug flag set to > > >> >>true that I can debug in FB, so, I was wondering if FB has > > >> >>particularities I don't know while debuging, also, I found similar > > >>issues > > >> >>searching on google but none of them has a fix, any other thoughts ? > > >> >> > > >> >> > > >> >>Envoyé depuis un mobile Samsung > > >> >> > > >> >><div>-------- Message d'origine --------</div><div>De : Alex Harui > > >> >><aha...@adobe.com> </div><div>Date :14/01/2014 19:02 (GMT+00:00) > > >> >></div><div>A : dev@flex.apache.org </div><div>Objet : Re: FDB vs FB > > >> >>debugging ? </div><div> > > >> >></div> > > >> >>I get that in FDB if the module isn't compiled with the debug flag, or > > >> >>the > > >> >>module is stale so there is no matching code at that line after the > > >> >>source > > >> >>code changed. > > >> >> > > >> >>HTH, > > >> >>-Alex > > >> >> > > >> >>On 1/14/14 10:18 AM, "Frédéric THOMAS" <webdoubl...@hotmail.com> > > >>wrote: > > >> >> > > >> >>>Hi, > > >> >>> > > >> >>>I'm facing an issue using IntelliJ or FDB directly to debug > > >>multi-module > > >> >>>projects then tried with FB and had no problems, maybe someone can > > >> >>>enlighten me regarding the differences, basically, the issue is that > > >>I > > >> >>>can't set a breakpoint in a module, these are the returned messages > > >> >>>"Breakpoint not set; no executable code at line" or "There is no > > >> >>>executable code on the specified line" : > > >> >>> > > >> >>> > > >> >>>In FDB: > > >> >>> > > >> >>>[SWF] //Memotech60PT/UI/shell.swf/[[DYNAMIC]]/2 - 3á918 bytes after > > >> >>>decompression > > >> >>>[SWF] > > >> > > >>>>>//Memotech60PT/UI/modules/Authentication/AuthenticationModule-en_US.sw > > >>>>>f > > >> >>>- > > >> >>>341á370 bytes after decompression > > >> >>>[SWF] > > >>//Memotech60PT/UI/modules/Authentication/AuthenticationModule.swf > > >> >>>- > > >> >>>6á135á818 bytes after decompression > > >> >>>Additional ActionScript code has been loaded from a SWF or a frame. > > >> >>>To see all currently loaded files, type 'info files'. > > >> >>>Set additional breakpoints as desired, and then type 'continue'. > > >> >>> > > >> >>>(fdb) info files Aut* > > >> >>>AuthenticateUserCommand.as#2400 > > >> >>>AuthenticateUserEvent.as#1043 > > >> >>>AuthenticationTicket.as#596 > > >> >>>AuthorizationControl.as#971 > > >> >>>AuthorizationEvent.as#1670 > > >> >>>AuthorizationManger.as#927 > > >> >>>AuthorizationServiceDelegate.as#2682 > > >> >>>AutoComplete.mxml#1632 > > >> >>>AutoCompleteItemRemoveEvent.as#947 > > >> >>>AutoSizeTree.as#3133 > > >> >>> > > >> >>>(fdb) continue > > >> >>>Additional ActionScript code has been loaded from a SWF or a frame. > > >> >>>To see all currently loaded files, type 'info files'. > > >> >>>Set additional breakpoints as desired, and then type 'continue'. > > >> >>> > > >> >>>(fdb) info files Aut* > > >> >>>AuthenticateUserCommand.as#2400 > > >> >>>AuthenticateUserEvent.as#1043 > > >> >>>AuthenticationModule.mxml#4949 > > >> >>>AuthenticationTicket.as#596 > > >> >>>AuthorizationControl.as#971 > > >> >>>AuthorizationEvent.as#1670 > > >> >>>AuthorizationManger.as#927 > > >> >>>AuthorizationServiceDelegate.as#2682 > > >> >>>AutoComplete.mxml#1632 > > >> >>>AutoCompleteItemRemoveEvent.as#947 > > >> >>>AutoSizeTree.as#3133 > > >> >>> > > >> >>>(fdb) list AuthenticationModule.mxml:37 > > >> >>> 32 > > >> >>> 33 [Bindable] > > >> >>> 34 public var _accCtrlModel : > > >>AccessControlServiceModelLocator > > >> >>>= AccessControlServiceModelLocator.getInstance(); > > >> >>> 35 > > >> >>> 36 override protected function initHandler() : void { > > >> >>> 37 resetLocalization(); > > >> >>> 38 } > > >> >>> 39 > > >> >>> 40 private function displayChangePwdForm( event : Event ) : > > >> >>>void { > > >> >>> 41 this.currentState = "PasswordChange"; > > >> >>> > > >> >>>(fdb) file AuthenticationModule.mxml > > >> >>>(fdb) break 37 > > >> >>>Breakpoint not set; no executable code at line 37 of > > >> >>>AuthenticationModule.mxml#4949 > > >> >>>(fdb) > > >> >>> > > >> >>>----------------------------------------------- > > >> >>>In IntelliJ after having configured the logs correctly: > > >> >>> > > >> >>>2014-01-14 16:20:54,227 [ 120523] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716454227 Apache fdb (Flash Player Debugger) [build 0] > > >> >>>2014-01-14 16:20:54,227 [ 120523] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716454227 Processed by > > >> > > >>>>>com.intellij.lang.javascript.flex.debug.FlexDebugProcess$ReadGreetingC > > >>>>>om > > >> >>>m > > >> >>>a > > >> >>>nd > > >> >>>2014-01-14 16:20:54,230 [ 120526] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716454230 Sent:run > > >> >>>2014-01-14 16:20:54,230 [ 120526] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716454230 Copyright 2013 The Apache Software Foundation. > > >> >>>2014-01-14 16:20:54,230 [ 120526] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716454230 Processed by > > >> > > >>>>>com.intellij.lang.javascript.flex.debug.FlexDebugProcess$LaunchBrowser > > >>>>>Co > > >> >>>m > > >> >>>m > > >> >>>and > > >> >>>2014-01-14 16:20:54,326 [ 120622] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716454326 Waiting for Player to connect > > >> >>>2014-01-14 16:20:54,326 [ 120622] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716454326 Processed by > > >> > > >>>>>com.intellij.lang.javascript.flex.debug.FlexDebugProcess$LaunchBrowser > > >>>>>Co > > >> >>>m > > >> >>>m > > >> >>>and > > >> >>>2014-01-14 16:20:54,441 [ 120737] INFO - > > >> >>>s.impl.stores.FileBasedStorage > > >> >>>- Document was not loaded for $APP_CONFIG$/consoleFolding.xml file is > > >> >>>null > > >> >>>2014-01-14 16:20:55,245 [ 121541] INFO - > > >> >>>ellij.concurrency.JobScheduler > > >> >>>- 50 ms execution limit failed for: > > >> >>>com.intellij.openapi.progress.impl.ProgressManagerImpl$1@169bf512; > > >> >>>elapsed time was 75ms > > >> >>>2014-01-14 16:21:01,021 [ 127317] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716461021 Player connected; session starting. > > >> >>>Set breakpoints and then type 'continue' to resume the session. > > >> >>>[SWF] //Memotech60PT/UI/shell.swf - 14,919,314 bytes after > > >>decompression > > >> >>>2014-01-14 16:21:01,021 [ 127317] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716461021 Processed by > > >> > > >>>>>com.intellij.lang.javascript.flex.debug.FlexDebugProcess$LaunchBrowser > > >>>>>Co > > >> >>>m > > >> >>>m > > >> >>>and > > >> >>>2014-01-14 16:21:01,021 [ 127317] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716461021 Sent:break > > >>Authentication.AuthenticationModule.mxml:37 > > >> >>>2014-01-14 16:21:01,045 [ 127341] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716461045 Breakpoint 1 created, but not yet resolved. > > >> >>>The breakpoint will be resolved when the corresponding file or > > >>function > > >> >>>is loaded. > > >> >>>2014-01-14 16:21:01,045 [ 127341] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716461045 Processed by > > >> > > >>>>>com.intellij.lang.javascript.flex.debug.FlexBreakpointsHandler$InsertB > > >>>>>re > > >> >>>a > > >> >>>k > > >> >>>pointCommand > > >> >>>2014-01-14 16:21:01,045 [ 127341] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716461045 Sent:continue > > >> >>>2014-01-14 16:21:03,520 [ 129816] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716463520 Additional ActionScript code has been loaded from a > > >>SWF > > >> >>>or a frame. > > >> >>>To see all currently loaded files, type 'info files'. > > >> >>>Set additional breakpoints as desired, and then type 'continue'. > > >> >>>2014-01-14 16:21:03,520 [ 129816] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716463520 Sent:continue > > >> >>>2014-01-14 16:21:04,834 [ 131130] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716464834 [SWF] > > >>//Memotech60PT/UI/ApplicationResources-en_US.swf - > > >> >>>436,155 bytes after decompression > > >> >>>2014-01-14 16:21:04,935 [ 131231] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716464935 [SWF] //Memotech60PT/UI/shell.swf/[[DYNAMIC]]/1 - > > >>3,918 > > >> >>>bytes after decompression > > >> >>>2014-01-14 16:21:05,646 [ 131942] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716465646 [SWF] > > >> >>>//Memotech60PT/UI/modules/UserReports/UserReportsModule-en_US.swf - > > >> >>>341,044 bytes after decompression > > >> >>>2014-01-14 16:21:05,747 [ 132043] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716465747 [SWF] > > >> >>>//Memotech60PT/UI/modules/UserReports/UserReportsModule.swf - > > >>9,757,814 > > >> >>>bytes after decompression > > >> >>>2014-01-14 16:21:25,914 [ 152210] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716485914 Additional ActionScript code has been loaded from a > > >>SWF > > >> >>>or a frame. > > >> >>>To see all currently loaded files, type 'info files'. > > >> >>>Set additional breakpoints as desired, and then type 'continue'. > > >> >>>2014-01-14 16:21:25,914 [ 152210] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716485914 Sent:continue > > >> >>>2014-01-14 16:21:47,948 [ 174244] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716507948 Additional ActionScript code has been loaded from a > > >>SWF > > >> >>>or a frame. > > >> >>>To see all currently loaded files, type 'info files'. > > >> >>>Set additional breakpoints as desired, and then type 'continue'. > > >> >>>2014-01-14 16:21:47,949 [ 174245] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716507949 Sent:continue > > >> >>>2014-01-14 16:21:48,642 [ 174938] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716508642 [trace] warning: The class > > >> >>>Memotech.PatentComponent.Services.vo.DocketingWorkbench has been > > >>used in > > >> >>>a call to net.registerClassAlias() in _UserReportsModule_FlexInit. > > >>This > > >> >>>will cause UserReports:UserReportsModule to be leaked. To resolve the > > >> >>>leak, define Memotech.PatentComponent.Services.vo.DocketingWorkbench > > >>in > > >> >>>the top-level application. > > >> >>>[trace] warning: The class > > >> >>>Memotech.TrademarkComponent.Services.vo.DocketingWorkbench has been > > >>used > > >> >>>in a call to net.registerClassAlias() in _UserReportsModule_FlexInit. > > >> >>>This will cause UserReports:UserReportsModule to be leaked. To > > >>resolve > > >> >>>the leak, define > > >> >>>Memotech.TrademarkComponent.Services.vo.DocketingWorkbench in the > > >> >>>top-level application. > > >> >>>2014-01-14 16:21:48,747 [ 175043] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716508747 [SWF] //Memotech60PT/UI/shell.swf/[[DYNAMIC]]/2 - > > >>3,918 > > >> >>>bytes after decompression > > >> >>>2014-01-14 16:21:48,860 [ 175156] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716508860 [SWF] > > >> > > >>>>>//Memotech60PT/UI/modules/Authentication/AuthenticationModule-en_US.sw > > >>>>>f > > >> >>>- > > >> >>>341,370 bytes after decompression > > >> >>>2014-01-14 16:21:48,961 [ 175257] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716508961 [SWF] > > >> >>>//Memotech60PT/UI/modules/Authentication/AuthenticationModule.swf - > > >> >>>6,135,818 bytes after decompression > > >> >>>2014-01-14 16:22:08,972 [ 195268] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716528972 Additional ActionScript code has been loaded from a > > >>SWF > > >> >>>or a frame. > > >> >>>To see all currently loaded files, type 'info files'. > > >> >>>Set additional breakpoints as desired, and then type 'continue'. > > >> >>>2014-01-14 16:22:08,972 [ 195268] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716528972 Sent:continue > > >> >>>2014-01-14 16:22:30,006 [ 216302] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716550006 Additional ActionScript code has been loaded from a > > >>SWF > > >> >>>or a frame. > > >> >>>To see all currently loaded files, type 'info files'. > > >> >>>Attempting to resolve breakpoint 1, expression > > >> >>>"Authentication.AuthenticationModule.mxml:37": > > >> >>>There is no executable code on the specified line. > > >> >>>Fix or remove bad breakpoints, then type 'continue'. > > >> >>>2014-01-14 16:22:30,012 [ 216308] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716550012 Sent:continue > > >> >>>2014-01-14 16:22:33,665 [ 219961] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716553665 [UnloadSWF] //Memotech60PT/UI/shell.swf > > >> >>>2014-01-14 16:22:33,768 [ 220064] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716553768 Player session terminated > > >> >>> > > >> >>>2014-01-14 16:22:33,773 [ 220069] DEBUG - > > >> >>>pt.flex.debug.FlexDebugProcess > > >> >>>- 1389716553773 Sent:quit > > >> >>> > > >> >>>Thanks, > > >> >>>Frédéric THOMAS > > >> >> > > >> > > > >> > > > > > >