How to debug on mobile device

I’m trying to see if the setResolution function I’m using is registering the size of my phones screen, but I don;t know how to launch the project on it. I can load up the editor, but the farthest I get is the scene selection screen, I can’t actually select a scene. There’s no progress bar or loading indicator when it gets to this point, so I don’t know if it’s finished loading or if it stalled part way through and gave up.

I have a Motorola Moto G gen 3 running android version 6.0 if that helps.

You can run you application on your phone. You don’t have to do that thought Editor. Just find out your sceneID and head over to

https://launch.playcanvas.com/<sceneID>

Then you can call alert(something) in order to see what’s happening.

Oh, surely you have to be logged on the site.

Didn’t think of that, but it worked thanks.

You can also use Chrome to access the console, sources etc: https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews