google-ar / WebARonARCore

An experimental Chromium modification in the form of an app for Android that lets developers build Augmented Reality (AR) experiences using web technologies on top of Google's ARCore.
https://developers.google.com/ar/develop/web/getting-started
Apache License 2.0
756 stars 115 forks source link

Document remote debugging #11

Closed eric-schleicher closed 7 years ago

eric-schleicher commented 7 years ago

Still a bit hard to see exactly what/where errors occur. Is there a way to get insight into error either on the device or with a remote debugger?

-Eric

jsantell commented 7 years ago

You can debug it with Chrome remote debugger like you would other webviews: https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews#open_a_webview_in_devtools

jsantell commented 7 years ago

That being said, we should document this in the README. Updating title

eric-schleicher commented 7 years ago

thanks. i did find this in my own search but hadn't done it yet. will do now!

eric-schleicher commented 6 years ago

Hello @jsantell getting around to get this setup, have some additional questions. I've read the instructions on enabling remote debugging, but still wasn't able to get it sorted.

I went through the steps (on windows) prep the phone for remote debugging. Despite the device manager seeing the phone (s8 usb drivers installed; and debugging remote webviews enables in developer settings) when I run the pre-built apk (demo scene), I don't see any new entries on locally connected pc @ chrome://inspect, even after refreshing.

So first question is whether that is the expected result? does the pre-built apk have remote debugging of webviews enabled?

Reviewing the repo, i see that WebView.setWebContentsDebuggingEnabled(true) is used here

Am I right that this is just part of test(s) but doesn't end up in the apk?

If the pre-built apk doesn't have this enable, I don't mind building from source, i just didn't want to venture off a cliff if i didn't need to and it was something else silly.

Do i need to build from source with the WebView.setWebContentsDebuggingEnabled(true) addition? pointers appreciated.

jsantell commented 6 years ago

For a quick response, you shouldn't have to rebuild Chromium, the APK should support it out of the box.

Just to confirm, when opening Chrome on your Android phone, do you see Chrome for Android's tabs in chrome://inspect?