From 32491d2262a1d8cf42258d42f12c1830ef78ff76 Mon Sep 17 00:00:00 2001 From: szaimen Date: Sat, 13 Mar 2021 01:01:34 +0100 Subject: [PATCH] add debug section for Windows Signed-off-by: szaimen --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 85509e7677..ba95608d35 100644 --- a/README.md +++ b/README.md @@ -42,13 +42,21 @@ Make sure you read [SETUP.md](https://github.com/nextcloud/android/blob/master/S Easy starting points are also reviewing [pull requests](https://github.com/nextcloud/android/pulls) and working on [starter issues](https://github.com/nextcloud/android/issues?q=is%3Aopen+is%3Aissue+label%3A%22starter+issue%22). ### Getting debug info via logcat :mag: -#### With a computer: -- connect the device via USB +#### With a linux computer: +- enable USB-Debugging in your smartphones developer settings and connect it via USB - open command prompt/terminal - enter `adb logcat | grep "$(adb shell ps | awk '/com.nextcloud.client/{print $2}')" > logcatOutput.txt` to save the output to this file **Note:** You must have [adb](https://developer.android.com/studio/releases/platform-tools.html) installed first! +#### On Windows: +- download and install [Minimal ADB and fastboot](https://forum.xda-developers.com/t/tool-minimal-adb-and-fastboot-2-9-18.2317790/#post-42407269) +- enable USB-Debugging in your smartphones developer settings and connect it via USB +- launch Minimal ADB and fastboot +- enter `adb shell ps | findstr com.nextcloud.client` and use the second place of this output (it is the first integer, e.g. `18841`) as processID in the following command: +- `adb logcat | findstr > %HOMEPATH%\Downloads\logcatOutput.txt` (This will produce a logcatOutput.txt file in your downloads) +- if the processID is 18841, an example command is: `adb logcat | findstr 18841 > %HOMEPATH%\Downloads\logcatOutput.txt` (You might cancel the process after a while manually: it will not be exited automatically.) + #### On a device (with root) :wrench: - open terminal app *(can be enabled in developer options)* - get root access via "su"