作者:冰月雪镜樱1993 | 来源:互联网 | 2023-05-19 09:48
IrecentlyranintoanembarrassingsituationwithsomeFlashcodingwhereIhadtoaccidentallysen
I recently ran into an embarrassing situation with some Flash coding where I had to accidentally sent clients a build where not all my debugging flags and variables were unset. (It was sending requests to the debug instead of release server, etc...)
我最近遇到了一些令人尴尬的情况,我不得不意外地向客户端发送了一个构建,而不是所有的调试标志和变量都未设置。 (它是向调试发送请求而不是发布服务器等...)
Part of this was poor code organization on my part; I've resolved that.
部分原因是我的代码组织很差;我已经解决了这个问题。
However, Flash doesn't seem to allow one to set different build configurations, and the Actionscript Compile settings hosts a variety of switches arranged in such a fashion that forgetting to check/uncheck something (OMG, I forgot to disable debugger support!) might just happen, as it did with me. In any case, I find that manually jumping between my release config and debug config to be easy to screw up.
但是,Flash似乎不允许设置不同的构建配置,并且Actionscript Compile设置托管各种交换机,这些交换机以忘记检查/取消选中某些内容的方式排列(OMG,我忘了禁用调试器支持!)就像发生在我身上一样。在任何情况下,我发现在我的发布配置和调试配置之间手动跳转很容易搞砸。
So, other developers, what techniques do you use to error-proof jumping between your testing config, and the build config that you issue to your boss/clients/whoever?
那么,其他开发人员,您使用什么技术来防止在测试配置和您向老板/客户/谁发出的构建配置之间跳转?
I know I should probably slow down but I would much prefer setting up something to where I could just flip a switch. I'm just jumping back into Flash after a long hiatus (Flash MX + a bit of 2004).
我知道我应该放慢速度,但我更喜欢把东西放到我可以翻转开关的地方。经过长时间的中断后我才重新回到Flash中(Flash MX + 2004年的一点点)。
Oh, and I'm aware of the futility of disabling debug support and setting import passwords and all that, my goal is to simply keep the script kiddies out of my project. Decompilers trump all that so.....
哦,我知道禁用调试支持和设置导入密码是徒劳的,所有这一切,我的目标是简单地将脚本小子放在我的项目之外。反编译器胜过一切......
Anyways, Thanks!
4 个解决方案