Android'de uzaktan hata ayıklama
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Geliştirme ve çalıştırma ortamları arasındaki farklar nedeniyle, bazı
sorunlar yalnızca belirli fiziksel cihazlarda
görünür.
Şu anda uzaktan kodda hata ayıklama çok önemlidir. Sonuçlarınızı bulmanıza
Böylece, epey zaman kazanmış olursunuz.
Cocos Creator'da uzaktan kodda hata ayıklama işlemi yapmak neyse ki çok kolay.
Fiziksel cihazlarda uzaktan kod hata ayıklaması yapmak için aşağıdaki 3 adımı uygulamanız yeterlidir:
Android cihazın, kullandığınız bilgisayarla aynı LAN'da olduğundan emin olun
hata ayıklama için
kullanılıyor. (Hata ayıklama sırasında proxy'yi etkinleştirmeyin, aksi takdirde
bağlantı başarısız olabilir.)
Android platformunu seçin ve Derleme panelinde Hata ayıklama modu'nu işaretleyin
üzerine konuşacağız. 
Uzaktan hata ayıklama için Chrome geliştirici araçlarını
adresini ziyaret edin. (<device_LAN_IP>
içeren doğru mobil cihazın IP adresini kullanın.) Ardından uzaktan kumandayı başlatabilirsiniz
projenizdeki TypeScript kodunda hata ayıklama.
devtools://devtools/bundled/js_app.html?v8only=true&ws=<device_LAN_IP>:6086/00010002-0003-4004-8005-000600070008

Daha ayrıntılı talimatlar için resmi Cocos
Oluşturan
dokümanlarına göz atın.
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-27 UTC."],[],[],null,["# Remote debugging on Android\n\nDue to the differences between development and running environments, some\nproblems only occur on specific physical devices.\n\nAt this time, remote code debugging is very important. It can help you to locate\nthe problem quickly, saving you lots of time.\n\nFortunately, remote code debugging is very easy in Cocos Creator.\n\nTo perform remote code debugging on physical devices, just follow these 3 steps:\n\n1. Make sure the Android device is on the same LAN as the computer that you are\n using for debugging. (**Do not enable proxy during debugging, otherwise the\n connection may fail.**)\n\n2. Select the Android platform and check **Debug mode** in the **Build** panel\n of Cocos Creator, then build and run.\n\n3. Open the Chrome devtools for remote debugging by visiting the following\n address in the Chrome browser. (You'll need to replace `\u003cdevice_LAN_IP\u003e`\n with the correct mobile device's IP address.) You can then start the remote\n debugging on TypeScript code in your project.\n\n devtools://devtools/bundled/js_app.html?v8only=true&ws=\u003cdevice_LAN_IP\u003e:6086/00010002-0003-4004-8005-000600070008\n\nFor more detailed instructions, you can take a look at the official [Cocos\nCreator\ndocumentation](https://docs.cocos.com/creator/manual/en/editor/publish/debug-jsb.html)."]]