Remote debugging on Android
Stay organized with collections
Save and categorize content based on your preferences.
Due to the differences between development and running environments, some
problems only occur on specific physical devices.
At this time, remote code debugging is very important. It can help you to locate
the problem quickly, saving you lots of time.
Fortunately, remote code debugging is very easy in Cocos Creator.
To perform remote code debugging on physical devices, just follow these 3 steps:
Make sure the Android device is on the same LAN as the computer that you are
using for debugging. (Do not enable proxy during debugging, otherwise the
connection may fail.)
Select the Android platform and check Debug mode in the Build panel
of Cocos Creator, then build and run.
Open the Chrome devtools for remote debugging by visiting the following
address in the Chrome browser. (You'll need to replace <device_LAN_IP>
with the correct mobile device's IP address.) You can then start the remote
debugging on TypeScript code in your project.
devtools://devtools/bundled/js_app.html?v8only=true&ws=<device_LAN_IP>:6086/00010002-0003-4004-8005-000600070008
For more detailed instructions, you can take a look at the official Cocos
Creator
documentation.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-08-15 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2023-08-15 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-08-15 UTC."]]