Hi guys,

I'm currently writing a game engine using the Flex 4 SDK that shipped with Flash Builder. I keep running into a weird bug that's absolutely wrecking my head. I'm using FlashDevelop as my IDE.

Basically what happens is that every so often when compiling in Debug mode, the Flash player will fail to launch and instead I get this message:
"Set breakpoints and then type 'continue' to resume the session."

Problem is, I'm using FlashDevelop and I don't have a debugger, or any way to type continue (not that I want to type it in the first place). Basically now, FlashDevelop, or Flash, is blocking. I can't launch again unless manually close the Flash Debug Player (the latest version 10 btw), or close FlashDevelop, in which case, the Flash Debug Player now starts up.

Now, crazy as this sounds, I think it's related to file size. For example, the latest occurrence of this bug was when I added a setter to a class, that went like this:

Code:
public function set BackgroundColour( c:Colour ):void
{
     this.m_bgColour = c;.
}
Pretty innocuous, right? However adding this function means that now I can't run my program in debug. If I add the line:

Code:
private var myRandomNumber:Number = 1;
Before my function, everything works fine. If I change the Number to an int, everything breaks again!

This doesn't happen all the time, and is fine when compiling in Release. Seriously, this bug is vexing me - does anyone know what's behind it or how to stop it happening (aside from filling your class with bloat)?

Thanks,
Damian