Our project has a "web" module that contains some Flex sources. The people who developed the flex stuff are long gone. Our Ant build script compiles the flex sources to create the SWF files and put them the right place so that pages that have Flash content work correctly. But now I want to debug the flex code, and I have no idea how to make that work. From the documentation, I know that I need to add a Flex facet to the web module, and I know I need to create a flex run-config, so I did both of those things, but I'm struggling with what to enter in the run-config: (for example I don't even know what the "main class" is).
My question really boils down to this: given that someone who is no longer here created these flex files and the accompanying ANT build scripts to compile them, how do I set up IDEA to do the build itself instead of ANT, and moreover, how to get debugging working, so that I can set breakpoints, modify flex source files, rebuild, and debug again.
Googling on this subject didn't help much as it seems most people describe how to create Flex applications in IDEA, not how to debug Java web apps that have a Flex facet. Does anyone know a good article to read for this? Or could you provide a brief one here? Thanks in advance.