Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-23989

FDB: Cannot set breakpoints in modules loaded at runtime.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK 3.4 (Release)
    • None
    • FDB - Debugger
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Firefox 3.x
      Language Found: English

    Description

      Build project with Ant using Flex SDK 3.4.0. Project has an mx:Application console that launches mx:Module components as application widgets. This is a commercial product so I cannot send code. The mx:Application and mx:Module components use several .SWC libraries that are part of the project code and compiled in the same project. mx:Application and mx:Module components are deployed on a local web server.

      Execute command line FDB with URL to HTML wrapper of mx:Application. Application launches and breakpoints can be set in the mx:Application code. Application module component selected and launched. Application loads the mx:Module with the ModuleLauncher. FDB stops in pre-init, type 'continue', FDB stops in init. Use FDB list command 'list <Component>.mxml <linenumber>' where <Component>.mxml is the mx:Module component or a component called by the mx:Module component. The component source code is listed as expected. Attempt to set a line breakpoint using 'break <lineno>', or a function breakpoint using 'break <functionname> results in the error message: 'Breakpoint not set; no executable code at line <lineno> of <Component>.mxml#nnnn'.

      The error message for an attempt to set a function breakpoint has the correct line number of the function. WTF? If it knows the line number why doesn't it set the breakpoint?

      The exact same code can be debugged in FlexBuilder 3.02 but not in FDB from Flex SDK 3.4.0. FDB breakpoints in the mx:Application code work as expected. It only seems to affect modules loaded by the module launcher.

      A screenshot is attached showing the source code listing and an attempt to set a function breakpoint.

      Attachments

        Issue Links

          Activity

            People

              adobejira Adobe JIRA
              adobejira Adobe JIRA
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: