Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

精确定位 Cocos 线上报错 #6

Open
wzpan opened this issue May 14, 2019 · 5 comments
Open

精确定位 Cocos 线上报错 #6

wzpan opened this issue May 14, 2019 · 5 comments

Comments

@wzpan
Copy link

wzpan commented May 14, 2019

https://oedx.github.io/2019/01/14/precise-positioning-cocos-online-error/

图片源自 Zoommy 在 Cocos-JS 的项目中,编译时往往采用 加密 + 压缩 的方式。最终 CocosCreator 编译出的代码文件都是无法直接阅读的,代码文件有 jsb_po

@jareguo
Copy link

jareguo commented Nov 29, 2019

现在构建后不是会生成一个“js backups (useful for debugging)”目录么?这里面就有行号一一对应的源代码,不需要解密

@wzpan
Copy link
Author

wzpan commented Nov 29, 2019

@jareguo
现在构建后不是会生成一个“js backups (useful for debugging)”目录么?这里面就有行号一一对应的源代码,不需要解密

有时候需要解源码的不是在构建的那台机器上,而是其他开发人员的设备,而大家又都有脚本加密密钥。这时候有一个解密工具就很方便了。

@QinGeneral
Copy link

现在构建后不是会生成一个“js backups (useful for debugging)”目录么?这里面就有行号一一对应的源代码,不需要解密

另外可以方便进行热更新验证,直接修改 project.js 然后加密就好了。不需要再次打包

@ougato
Copy link

ougato commented Oct 20, 2020

干货,学习了

@chenyanbinloading
Copy link

大神您好,解密之后也是混淆文件,我要怎么定位到原始代码的行列号

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants