Yes, any MXML file will cause the --source-map argument to fail right now. I'll try to get it to skip MXML files, as a temporary workaround.
I expect that it is possible to get debugging working in VS Code. The Flash/Flex plugin for IntelliJ IDEA is also open source. https://github.com/JetBrains/intellij-plugins/tree/master/flex - Josh On Apr 13, 2016 11:28 AM, "Harbs" <harbs.li...@gmail.com> wrote: > > Right now, source maps for MXML files are not supported. The compiler > will > > exit with an error. It should be possible to support it in the future, > but > > I'm focusing on pure ActionScript for now. > > So, a project with ANY mxml file cannot be used right now with the > --source-map option? > > If so, I’ll have to wait to try it out. > > > I tried getting the IntelliJ IDEA debugger working with source maps. It > > recognizes them in other places, but breakpoints won't work. I think I've > > figured out that ActionScript files have their own type of breakpoint in > > IDEA that isn't recognized as a JavaScript breakpoint. > > In-IDE debugging would be REALLY cool. I hope some of the IDE folks jump > on the band-wagon to get that working. > > I wonder how hard it would be to get that working in Visual Studio > Code[1]. (In fact, I wonder about FlexJS integration in general.) It has > support for in-IDE debugging of TypeScript and the whole IDE is open-source. > > [1]https://www.visualstudio.com/products/code-vs > >