+ 1
If anyone knows a solution for mobile js debugging on device, without another computer please post it!
I am reposting here my previous question: https://www.sololearn.com/Discuss/2191015/?ref=app I hope there is someone here in SoloLearn who knows a way to line-by-line debugging with inspecting variables on a mobile, without connecting to a desktop computer.
5 Answers
+ 1
You can make mobile browser console by adding a script
https://github.com/liriliri/eruda
+ 1
Prof. Dr. ZoltƔn Vass I have tried it on firefox mobile browser.
Firstly, visit the webpage you want to debug on mobile firefox.
Wait for the page finish loaded.
Next, enter the follow code on the address bar and press enter
javascript:(function () { var script = document.createElement('script'); script.src="//cdn.jsdelivr.net/npm/eruda"; document.body.appendChild(script); script.onload = function () { eruda.init() } })();
You would notice an icon on the lower right corner of your browser window.
Click the icon, the access the devtools.
+ 1
Prof. Dr. ZoltƔn Vass I use Android, have not tested on iOS.
0
CalviÕ² Seems to be very sophisticated, Iāll try it as soon as I can. Have you tried it perhaps?
0
CalviÕ² Thanks for details!
Iāve pasted the code as you advised but Firefox mobile browser asks if open this script in external app. Yes: nothing happens, cancel: nothing happens (iOS)