Mac environment Cocos Creator Debug JS code necessary settings

Source: Internet
Author: User
"Remarks" I am currently using the latest version of Cocos Creator 1.8.1 (support for small game development).

The latest version Cocos Creator 1.8.1 in the MAC environment does not yet support the built-in browser Safari for JS code debugging, only install using Chrome and debugger for Chrome.

From Cocos Creator 1.4.0-beta.2 the workflow of using the VS Code Debug Web version of the game has been added. To do this, we need to install the Debugger for Chrome plugin in VS Code and add the Chrome Debug configuration from the Vscode workflow in the Creator main menu.

Here's an introduction to installing VS Code (Microsoft provides a visual development tool for open source lightweight popular language, which is worth recommending). The steps to install the debugger for Chrome plugin in VS code are:

"Prerequisites" Installs the latest version of the Chrome browser for Mac version.

1, open vs Code;
2. Click the Menu "Debug"-"Install other debugger ...";
3, enter the search keyword "Chrome", as shown:

4, click the "Install" button to install the plugin "Debugger for Chrome 4.1.0".

Finally, run the Cocos Creator main Menu:
Add Chrome Debug Configuration to the developer-vscode Workflow.

Here it is. You can set breakpoints for JS code in VS Code and start debugging JS code directly in VS code.

?

Mac environment Cocos Creator Debug JS code necessary settings

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.