From 2bcb1ee08b3405787ab46291d7d9dcb0244599ee Mon Sep 17 00:00:00 2001 From: bl00dymarie Date: Sun, 9 Dec 2018 15:26:52 +0000 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 33c2411..092419a 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,8 @@ Unfortunately, the react native version we use doesn't work on Windows 10 it see You can run the tests with `npm test`. ## Debugging -When running into an old version of the app try to run the following command first: -`react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res` +If you want to check what the code is actually doing you can add an extra line to your code to check a specific variable `console.log(someTestVariable)` or a function or just check whether this line gets actually reached. +Save it and run `npm run android` in one window and `rpm run log` in a different window, where it will print out what you speficied in console.log, e.g. `someTestVariable`. ## NFP rules More information about how the app calculates fertility status and bleeding predictions in the [wiki on Gitlab](https://gitlab.com/bloodyhealth/drip/wikis/home)