I have a AIR for mobile pure AS3 project that saves a file on the device the first time it runs into the file.applicationStorage directory. The second and subsequent times the application launches I need it to look at that file I've saved.
My problem is that when I debug the application from Flex Builder 4.5 it wipes the application and application storage. So the application always behaves like it is running for the first time. I can't get into a debug session and step through my code as I read in that file.
Does anyone know how to connect to a debug session running on the device? My device in this case i开发者_StackOverflow社区s an Android Samsung Galaxy S.
Open up the debug configuration (click the arrow next to the debug icon). There should be an entry on the left for your application. Select it, and there is an option to "Clear application data on each launch". Make sure this is unchecked when you want to debug the file. It might be a good idea to turn this back on during normal development so you don't get any stale data.
精彩评论