views:

227

answers:

3

Using Flash builder 4 to build an AIR app.

I keep having my code changes not take effect when I launch the project with the debugger, probably happens about once an hour. So does anyone know how to have FlashBuilder clean the project automatically before each launch?

Thanks

A: 

I find that as long as I don't change code and/or recompile while an active debug sessions is on-going; I have no issues with the application not picking up code changes between subsequent runs.

www.Flextras.com
hmmm, I do tend to be lazy, and so I have FB terminate the current run to start a new one, so this is very possible. So in the interests of maintaining the Automatic nature of my question can I change it so that it ends a current debug session before launching a new one? Maybe a chain of commands after a keyboard shortcut a la MS office macros?
invertedSpear
Sorry; I'm not sure if you understood my post. I didn't think it was possible to have 2 active debug sessions running at once. The key for me has been not to change code while a debug sessions is active. Be sure to terminate the active debug session before recompiling your app. If you have build automatically enabled, the app is recompiled every time you save changes to a file.
www.Flextras.com
you can't have 2 at once, but FB will terminate your current one when you start a new one. I understand what your saying, don't modify code while debugging, but this is exactly what I want to do. I know it's simple to go click that red square, but I don't even want to do that, it would be simpler just to click the debug button and have FB automatically close any current debug session, clean my code, then build and launch.
invertedSpear
It sounds like you want a "Build on Debug" or "Build on Launch" type of feature in addition to "Build Automatically" an/or "Build Manually". If so, feel free to fire a feature request. http://bugs.adobe.com/flex/
www.Flextras.com
A: 

This is still killing me. I have hit a total wall. No amount of restarting seems to get the debugger to work against new code. Never had this problem until recently. Now I can make zero progress.

Alex Edelstein
have you done a clean?
invertedSpear
And if it still happens after a clean and rebuild, double-check that the swfs are actually being produced; My experience with Flex Builder 3 is that it sometimes quietly fails without showing anything in Problems or giving a warning before Run or Debug. You can do a build with the command line compilers to actually see the error messages so you can get it up and running again.
rakslice