11 Replies Latest reply: Dec 7, 2012 12:00 PM by DanaPayne RSS

    Flash debugger doesn't stop on breakpoints

    Rodo-Adb

      I don't know why but i've got fla files that I can't debug.

       

      I'm able to launch debugger and the swf file is correctly run when I do it, but if for instance I add a trace in my code and add a breakpoint on it, it will appear in the output but the debugger doesn't stop on the breakpoint.

       

      It's a pretty big project that uses a quite numbers of external swc libraries, home produced for the most, and I can't figure where could this bug come from. All the more if I create a simple fla file with a simple document class attached to it the debugger works perfectly.

       

      So if anyone already encountered the problem or got an idea over any reason that could make the debugger to not stop on breakpoint, I'd appreciate.

        • 1. Re: Flash debugger doesn't stop on breakpoints
          Rodo-Adb Community Member

          I also take the opportunity to give you a link to one of my other questions that didn't find an answer :

          http://forums.adobe.com/thread/439163

          • 2. Re: Flash debugger doesn't stop on breakpoints
            Rodo-Adb Community Member

            Sorry, I forgot to say I use Flash CS4.

            • 3. Re: Flash debugger doesn't stop on breakpoints
              Rodo-Adb Community Member

              I would be glad to have answers from other people than me, because in each of my thread i feel like i'm doing a monologue. Maybe some adobe people ?

              • 4. Re: Flash debugger doesn't stop on breakpoints
                Rodo-Adb Community Member

                Finally I ended up to think the cause of the problem is the use of SWC libraries. It prevents the code from being stoped, even before entering the code within the library.

                • 5. Re: Flash debugger doesn't stop on breakpoints
                  Rodo-Adb Community Member

                  For the ones which encountered the same problem as me, I found an other problem in relation with this one.

                   

                  Sometimes, when you launch an application in debug mode in Flash, even without use of externals swc, the compiler stop on breakpoints, but the little yellow arrow that should appear in this case doesn't. And even if you launch the debug mode again, it doesn't appear. In this case you could think the compiler didn't stop. But at this time, if you open the debug console and do a step by step, the yellow arrow will show and will do it every next time you launch the debug mode.

                   

                  One tips to be quickly aware of the problem is to drop breakpoints in the constructor of the document class, because the Flash Player won't show before this constructor is fully processed.

                  • 6. Re: Flash debugger doesn't stop on breakpoints
                    AMPO webdesign&multimedia Community Member

                    It happens to me all the time since I jumped to Flash Pro CS4. It makes the work very hard. I work on a pretty big project. No SWC libraries in my case, all my AS3 logic is outside of the .fla file - in a dozen of .as class files. I set breakpoints in the classes script, but hardly ever the breakpoints do stop, although I know the breakpoint-marked lines are executed (which I check by trace() or simply see the results). Some breakpoints are set in class constructors, some are in functions that are called by constructors, but also some are just normal functions or mouse event handlers. I might say about 10% cases of breakpoints do stop as expected, the rest is just ignored.

                     

                    My configuration: Flash CS4 Pro 10.0.2, Windows XP SP3, I have also older versions of Flash installed (but not run simultanoeously) on the same machine if that matters.

                     

                    It would be really great if someone from Adobe had check that issue, because debugging big projects with trace() only is pretty tiresome and time-consuming.

                    • 7. Re: Flash debugger doesn't stop on breakpoints
                      Rodo-Adb Community Member

                      I'm back but I have still not found the cause of the problem.

                      I answered if the fact I work on a server could be the cause, but moving my files to local didn't resolve the problem.

                      I also have the problem sometimes even without using swc libraries, just with as3 source files.

                      I even tried to add the breakpoints manually in the Flash's xml debug file but successless.

                       

                      However, I found a little trick that can be helpful. When the debugger bugs like that, instead of adding breakpoints, I throw Errors, and then the debugger stop on the line where the error is thrown, giving you access to the content of all the variables at that point. But you still cannot use step by step.

                      • 8. Re: Flash debugger doesn't stop on breakpoints
                        AMPO webdesign&multimedia Community Member

                        Nice trick with throwing Error, pretty helpful when breakpoints fail to do their jobs

                        Hopefully one day Adobe will fix the debugger to be as functional as it was before

                        • 9. Re: Flash debugger doesn't stop on breakpoints
                          Rodo-Adb Community Member

                          Finally I found a solution :

                           

                          Throw an error in the code and let the debugger catch it, it will open the source file. You can now set breakpoints that will works. Delete the error throwing and the job is done.

                           

                          PS : During the time I had this problem, I looked for external debuggers on the web. But I didn't found any which could set breakpoints or display the content of private variable cause the most are based on LocalConnection. So if anyone knows a good external debugger...

                          • 10. Re: Flash debugger doesn't stop on breakpoints
                            Grapixsoft

                            I'm having this same problem with Flash CS5. And throwing the error didn't seem to fix it. It stopped there but all variables were blank. I reinstalled, cleaned my registry but nothing seems to do any good. Help please.

                            • 11. Re: Flash debugger doesn't stop on breakpoints
                              DanaPayne

                              I am having the same problem with a complex (multiple .swf) application and finally found a "fix". Specifically my problem was that the debugger suddenly would stop Stepping Into or Continuing into the next .swf file in the process.

                               

                              My solution was to set a breakpoint in the second .fla (.swf) file and 1) just run the debugger from the point of the second .fla source file until it hit the breakpoint there. then 2) once it successfully hit the breakpoint, then I could restart the debugger starting from the first .fla file and start debugging from that point and it was then able to continue debugging into the second .swf when called.

                               

                              Hope that can resolve your issues, too.