Remote debugging: Not getting console from App when in kiosk mode

602 views
Skip to first unread message

jo...@telemetrytv.com

unread,
Nov 20, 2018, 10:15:12 PM11/20/18
to Chromium OS Development
Has anything changed recently with regards to remote debugging an app?
We've got our devices set up to SSH, and when we are running our app on a device that's not in kiosk mode (or just in a browser), we get the console output in the dev tools as expected.
However, in kiosk mode we don't get anything.

We did do a major rewrite at some point which may have (likely) caused this, but I'm not sure why everything works as expected until the app's in kiosk mode.

Sonny Rao

unread,
Nov 21, 2018, 4:25:30 PM11/21/18
to jo...@telemetrytv.com, Chromium OS Development
Not sure why kiosk mode changes anything w.r.t . debugging?
> --
> --
> Chromium OS Developers mailing list: chromiu...@chromium.org
> View archives, change email options, or unsubscribe:
> https://groups.google.com/a/chromium.org/group/chromium-os-dev
> ---
> You received this message because you are subscribed to the Google Groups
> "Chromium OS Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to chromium-os-d...@chromium.org.

jo...@telemetrytv.com

unread,
Nov 21, 2018, 4:53:24 PM11/21/18
to Chromium OS Development, jo...@telemetrytv.com
I'm not sure either, I was hoping there might be an obvious link that I didn't know about but I guess maybe not?
I just know that all of the tabs in DevTools are empty when the app runs in kiosk mode, and works as intended in browser or as an app on a device that's logged in to a user.

Sonny Rao

unread,
Nov 21, 2018, 5:17:16 PM11/21/18
to jo...@telemetrytv.com, Chromium OS Development
I'm not an expert in Chrome -- you may want to ask this question on
chromium-dev since it's mostly about Chrome

but I poked around and in the code and found something in
chrome/browser/devtools/devtools_window.c
that disables the UI aspect of it for kiosk mode and pointed at
https://crbug.com/514551

to me that seems to indicate that the UI stuff is disabled, but
doesn't say anything about the remote debugging so it seems like it
should work.

Ben Wells

unread,
Nov 21, 2018, 6:36:28 PM11/21/18
to sonn...@chromium.org, Drew Wilson, jo...@telemetrytv.com, chromiu...@chromium.org
+Drew Wilson whose team looks after kiosk

jo...@telemetrytv.com

unread,
Nov 22, 2018, 2:24:37 PM11/22/18
to Chromium OS Development, sonn...@chromium.org, atwi...@google.com, jo...@telemetrytv.com
If it helps at all, when we head to the application tab, our address is "//:" for some reason when looking at the "clear storage" section

Drew Wilson

unread,
Nov 23, 2018, 4:58:27 AM11/23/18
to jo...@telemetrytv.com, chromiu...@chromium.org, sonn...@chromium.org
Trying from the correct email address this time...

I suspect this is due to the new DeveloperToolsAvailability policy - it is intended to prevent users from using DevTools to interfere with force-installed apps and extensions, but I suspect this may also be impacting remote debugging of kiosk apps.

You will want to change this policy:

image.png

to "always allow use of built-in developer tools".

+Max Kirsch in case we want to change the default value of this policy for kiosk sessions.

jo...@telemetrytv.com

unread,
Nov 23, 2018, 3:08:57 PM11/23/18
to Chromium OS Development, jo...@telemetrytv.com, sonn...@chromium.org
Thanks for the having a look!
I've changed that setting (a couple of hours ago now), but still no luck. Could it still be taking a while to propagate to the devices? 
I've noticed now too that when using the devtools to look at our service worker, we're getting console output there (and the path under application is correct).

jo...@telemetrytv.com

unread,
Nov 28, 2018, 6:35:06 PM11/28/18
to Chromium OS Development, jo...@telemetrytv.com, sonn...@chromium.org
I logged into the device today and checked under Chrome://policy, and it looks like the policy isn't being pushed to the device? Unless I'm misunderstanding.
I set the user policy:

Screen Shot 2018-11-28 at 3.02.16 PM.png




and this is what I see when I log into the device, open up Chrome and go to chrome://policy:

Screen Shot 2018-11-28 at 3.10.19 PM.png

jo...@telemetrytv.com

unread,
Nov 29, 2018, 4:36:34 PM11/29/18
to Chromium OS Development, jo...@telemetrytv.com, sonn...@chromium.org
Today I put the changes into public kiosk users, as well as root org users and the policy shows up now when I log into the device. However, still no logs from our app in kiosk mode.

Aaron J Spetner

unread,
Apr 5, 2020, 11:52:51 PM4/5/20
to Chromium OS Development, jo...@telemetrytv.com, sonn...@chromium.org
I cannot find this DeveloperToolsAvailability policy for kiosk mode. I see it under "user and browser settings" and "managed guest session settings", but it does not appear under "device settings" and whenever I try to inspect the kiosk app, the dev tools are blank. I can inspect the login screen, but not the kiosk app. How can we debug our app? Why is the documentation so sparse?

Aaron J Spetner

unread,
Apr 20, 2020, 11:55:12 AM4/20/20
to Chromium OS Development, jo...@telemetrytv.com, sonn...@chromium.org
After two weeks of searching and tinkering, it does not appear that this policy setting is available anywhere in the Management Console. However, I just found that you can override it by adding --force-devtools-available to /etc/chrome_dev.conf.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages