[QUICK-COCOS2DX] can not find the exact location of the error, replace the original file to try to narrow the problem range

Source: Internet
Author: User

, the error message is that an error occurred while calling the upstarlayer.onbuttinreleased function, but there is no specific

Because there are more than one button called this function, so it is extremely troublesome to find, probably know that there is a problem with the control, fortunately, before using SVN saved a version, and then directly with the previous UI folder copied to the original folder, no error.

Can be sure that the control is out of the question, and then replace the UI file, to see which one error, in the piecemeal code replacement, finally found is to copy the control file when the button event function did not modify the problem.

Successful resolution, all, every time a version, upload to SVN is necessary, can be quickly back, to ensure that the file is not a big mistake.

[QUICK-COCOS2DX] can not find the exact location of the error, replace the original file to try to narrow the problem range

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.