ADB provides wireless debugging over Wi-Fi. To enable it follow the steps below.
1. adb devices - You’ll get your device signature if it is connected to the USB
2. adb tcpip 5555 - This will open a port (open the wireless service)
3. Find the IP address of your Android device by going into the device Wi-Fi settings, mine is 192.168.10.10
adb connect 192.168.10.10:5555Now you can disconnect your phone from the computer and still get the debug messages from your program over wi-fi . Filter your logcat
5. Type adb logcat -s “YOUR_PROGRAM_TAG”
adb logcat -s <tag>
To get back to USB debugging
adb usbIn the native VRLib code, messages can generally be printed using the LOG() macro. In most source files this is defined to pass a tag specific to that file. Log.h defines a few additional logging macros, but all resolve to calling __android_log_print().
Logcat will not necessarily be running when an application crashes. Fortunately, it keeps a buffer of recent output, and in many cases a command can be issued to logcat immediately after a crash to capture the log that includes the backtrace for the crash:
adb logcat > crash.log
Simply issue the above command, give the shell a moment to copy the buffered output to the log file, and then end adb (Ctrl+C in a Windows cmd prompt or OS X Terminal prompt). Then search the log for “backtrace:” to locate the stack trace beginning with the crash.
If too much time as elapsed and the log does not show the backtrace, there a full dump state of the crash should still exist. Use the following command to redirect the entire dumpstate to a file:
adb shell dumpstate > dumpstate.log
Copying the full dumpstate to a log file usually takes significantly longer than simply capturing the currently buffered logcat log, but it may provide additional information about the crash.
The backtrace in a logcat capture or dumpstate generally shows the function where the crash occurred, but does not provide line numbering. To get more information about a crash, the Android Native Development Kit (NDK) must be installed. When the NDK is installed, the ndk-stack utility can be used to parse the logcat log or dumpstate for more detailed information about the state of the stack. To use ndk-stack, issue the following:
ndk-stack -sym <path to symbol file>-dump<source log file>> stack.log
For example, this command:
ndk-stack -sym VrNative\Oculus360Photos\obj\local\armeabi-v7a -dump crash.log > stack.log
uses the symbol information for Oculus 360 Photos to output a more detailed stack trace to a file named stack.log, using the backtrace found in crash.log.
you may want to adb install apk through WIFI
adb connect 192.168.10.235:5555 adb install "E:\Documents\Unreal Projects\GearVR\APK\Android_ETC2\GearVR-armv7-es2.apk" or adb -r install "E:\Documents\Unreal Projects\GearVR\APK\Android_ETC2\GearVR-armv7-es2.apk"if u want to uninstall it, then try this:
//adb uninstall <package> adb uninstall com.YourCompany.GearVR or uniostall apk butu keep the data and cache files: //adb uninstall -k <package> adb uninstall -k com.YourCompany.GearVR
watch the CPU and Mermory cache used:
adb shell top
You may have this issue:
Eliran Kuta ‘s world, Imagine everything is double check over and is okay. then you may need to check like this:
1、Make sure that Aggressive Wi-Fi to Cellular handover
under Networking section in the device's developer options is tured off.
2、ping continously from your pc to the device to make sure it's not in network idle mode ping -t 192.168.1.10
(windows cmd), unlock the device and even try to surf to some website just to make it get out of the network idle.
3、When it replies to the ping, connect it via usb, and:
adb usb
adb tcpip 5555
//adb connect <DEVICE_IP_ADDRESS>:5555
adb connect 192.168.10.1:5555
4、In casr it's still not connected, try to switch the usb connection mode as MTP / PTP / Camera while the device is connected through usb and repeat these steps over again...
or trying "adb kill-server", or "adb disconnect <DEVICE_IP_ADDRESS>"
then do it again.
error: device offline
2.Set USB Debugging OFF.
3.In Terminal write : adb kill-server
4.Then : adb start-server
5.Then : adb connect xx.xx.xx.xx:5555 (the devices ip), it should say unable to connect.
6.Now turn ON USB debugging again and type the adb connect xx.xx.xx.xx:5555 again.
It should now ask for authorization and you are back online without needing to connect cable to USB, only wifi.
0.0.0.0/24 via 192.168.1.1 dev eth0
192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.109
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.151
ifconfig eth0 [IP] netmask [NETMASK]
route add default gw [GATEWAY] dev eth0
setprop net.eth0.dns1 8.8.8.8
setprop net.eth0.dns2 4.4.4.4
getprop
//eth0 UP [IP ADDR] [NETMASK] 0x00001043
相关推荐
在Android开发过程中,调试是必不可少的一环,而无线调试工具及方法为开发者提供了极大的便利,尤其是在没有数据线或者多设备间切换调试时。"android无线调试工具及方法"这一主题,核心是利用ADB(Android Debug ...
- 验证过程中会参考80-NP566-1的Android Wi-Fi Display Debug Guide来解决可能出现的问题。 6. **认证测试**: - 对视频KPI进行验证,这包括帧率、分辨率、延迟等关键指标,确保视频质量达到标准。 - 完成WFA...
"Debugging by Thinking" 提倡的是一种系统性的、逻辑性的思维方式,它融合了计算机科学、心理学、逻辑学等多个领域的理论与实践,帮助开发者构建一个全面的调试框架。 1. 计算机科学基础:调试首先需要对编程语言...
"Unity-debugging-5.x.zip"这个压缩包可能包含了一组针对Unity 5.x版本的调试工具和资源,特别是针对"dnspy"的mono.dll文件。 dnspy是一款开源的.NET反编译器和调试器,它允许开发者查看、编辑、调试和分析.NET程序...
PhoneGap Android is an Android application library that allows for PhoneGap-based projects to be built for the Android Platform. PhoneGap-based applications are, at the core, an application written in...
此压缩包文件“debugging-via-ohci1394.rar_ax88172a”主要关注的是ASIX AX88172A USB 2.0以太网设备的调试方法,特别是通过OHCI(Open Host Controller Interface)1394进行的调试。 首先,ASIX AX88172A是一款USB...
Compiling for debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting your program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Arguments To Your ...
在Unity中开发针对三星Gear VR的应用程序涉及到一系列特定的配置和优化步骤,这些步骤对于确保在虚拟现实设备上的顺畅体验至关重要。"Gear VR设置"这个标题暗示了我们需要关注的焦点是与 Gear VR 开发相关的Unity...
这个压缩包包含了一个名为"Memory-and-C++-debugging-at-EA-2015.pptx"的PPT文件,很可能是一个演讲或者培训材料,详细阐述了在大型项目中如何有效处理C++的内存问题以及进行高效调试。 在C++编程中,内存管理是...
《使用GDB进行调试》 GDB(GNU Debugger)是开源社区GNU开发的一款强大的源代码级调试器,广泛应用于C、C++等编程语言。它允许程序员在运行时检查和控制程序,查找并修复错误,从而提高软件的质量和可靠性。...
"Targets"和"Remote Debugging"分别说明了指定调试目标和远程调试的技巧,这在跨平台或网络环境下的开发中十分关键。最后,"Configurations"可能涉及GDB的配置选项和自定义,以适应不同用户的需求和工作流。 总之,...
Ko-fi Wordpress插件 官方Ko-fi Wordpress插件存储库。 打开以拉取请求。... google-chrome-stable --remote-debugging-address = 0.0.0.0---remote-debugging-port = 9222或2. Chrome浏览器--remote-debugging-
This book is for intermediate to advanced iOS/macOS developers who are already familiar with either Swift or Objective-C and want to take their debugging skills to the next level. Topics Covered in ...
本文将基于“Debugging a Linux Application with MontaVista 5.0”这一主题,详细阐述如何在MontaVista Linux 5.0环境下对TI达芬奇SOC处理器上的应用进行调试。 首先,理解调试的基础概念是必不可少的。调试是一种...
首先,"Serial-debugging-procedures"这一主题涉及的是通过串行接口对设备或系统进行故障排查和测试的过程。串口调试通常包括设置波特率、数据位、停止位、奇偶校验,以及检查信号线的稳定性。它帮助开发者识别并...
Today’s developers use it to develop Azure and Windows Phone apps, and Android applications using Mono. Novice programmers can get up and running quickly on C# using this practical guide. Crammed ...
"Unity-debugging-2017.x.zip" 这个压缩包显然是针对Unity 2017版本的一个调试工具集合,特别提到了"dnspy"和"mono.dll",这两个在Unity开发中扮演着关键角色。 dnSpy是一款开源的.NET反编译器和调试器,特别适合...
"Unity-debugging-2019.x.zip"这个压缩包很可能包含了一些关于在Unity 2019版本中进行调试的资源和教程,特别是使用dnSpy工具来调试Unity引擎中的"mono.dll"。 dnSpy是一款强大的.NET反编译器和调试器,特别适合于...