Detailed explanation of how to debug the EgretWing link WeChat development tool

Source: Internet
Author: User
This article describes how to debug the EgretWing link development tool. the EgretWing link development tool debugging problem. The EgretWing compiler supports three debugging modes: Node. js, Chrome, and EgretWing extension development.

A tool configuration error occurs during development.

In this case, you need to reconfigure the tool path in the configuration file launch. json in EgretWing.

  • Create an Egret project debugTest [Egret 2D project Wizard]

After the project is created, configure debug information in launch. json in the. wing folder.

For example:

{"Version": "0.2.0", "deployments": [{"name": "Wing built-in player debugging", "type": "chrome", "request ": "launch", "file": "index.html", "runtimeExecutable": "$ {execPath}", "useBuildInServer": true, "sourceMaps": true, "webRoot ": "$ {workspaceRoot}", "preLaunchTask": "build", "port": 5610 },{ "name": "debug with Chrome on the local machine", "type ": "chrome", "request": "launch", "file": "index.html", "runtimeExecutable": "/Applications/Google Chrome. app/Contents/MacOS/Google Chrome "," useBuildInServer ": true," sourceMaps ": true," webRoot ":" $ {workspaceRoot} "," preLaunchTask ": "build", "port": 5610 },{ "name": "append to Chrome process", "type": "chrome", "request": "attach ", "port": 9222, "webRoot": "$ {workspaceRoot}"}]}

Click debug as follows:

The above is a detailed explanation of the debugging problem of the EgretWing link development tool. For more information, see other related articles on php Chinese network!

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.