See cookies or debugs in the browser.

I created a web page that stores cookies in order to remember which user ID is placed in the schema viewer. It works on desktop versions of IE, Firefox, and Chrome. But when I try to visit it with Android or iPhone, it does not work.

What I would like to know is how you see saved cookies or how you debug JavaScript / HTML / CSS. If I look at errors in desktop Firefox, I get no errors for JavaScript and CSS.

+3
source share
3 answers

I recommend using the remote debugger built in chrome for Android application.

eg.

adb, usb ( usb) , goto, , . adb forward tcp:9222 localabstract:chrome_devtools_remote

: 9222 / .

: https://developers.google.com/chrome-developer-tools/docs/remote-debugging

+5

, , cookie android. , cookie? ( > more > settings > accept cookie ). javascript cookie, , javascript .

, , , cookie PHP javascript -. , , cookie . , javascript , " " , cookie. ( php, )

, , . , , , , . , setcookie

, !

0

Android 2.2 2.3 :

  • : url-, ;
  • javascript url;
  • console.log(document.cookie) "" > cookie

Keep in mind that the js debug panel on Android will only appear when the web application is registering something (for example, if a js error occurs or you run it through console.log so that you can run it inside your application to open )

For Android above 2.3, you have additional debugging options;)

Edition:

According to Zeb's answer here: https://developers.google.com/chrome-developer-tools/docs/remote-debugging

0
source

Source: https://habr.com/ru/post/1781608/


All Articles