I am having one of those nasty "works in debug but not in release" bugs. Is there any way to build a release version of the app but also debug it? Some platforms allow for this... but I haven't found a way to do it with my Flex/Air app.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Short answer: No, not in an easy fashion.
Long Answer: Definitely possible, but you need to work in the logs yourself. You should look at SpiceFactory's Logger implementation; it's very good. You could have those logs be sent to a server periodically if you wanted to. Furthermore, you could always use something like FlexSpy in your application to see what's going on.
It all depends on how much 'debugging' that you want in a release version while keeping in mind that anything added will decrease performance.
回答2:
You can do some "debugging" without modifying your SWF using SWFWire Debugger.