Glitch browser console

I am missing the browser console in Glitch. Since I‘m developing on mobile, I don‘t have access to browsers Dev Tools.

Codepen and JSFiddle seem to have that feature.

Can you please build one in Glitch as well.

Glitch has a log but I do not know if you can check that on phones.

Yep, just go to tools > logs

Correct me if I am wrong, but I think the OP is referring to the DevTools, like the Chrome DevTools that allows you to debug frontend code.

4 Likes

I do not use Codepen or JSFiddle so I do not know what that is. Cannot users already do everything that can be done in the Dev Tools in the editor already?

Nope. The project logs are for server files only. Console actions in client side js are outputted to the browser console in the app preview - not the project logs. It is quite frustrating when you’re trying to build a static app and there are errors you can’t see. The best workaround is just adding a window.onerror event and wrapping don stuff in try ... catch blocks.
You have my vote!

4 Likes

Are you on ios cause on android I believe you can type chrome://inspect to enable devtools
ios can’t have devtools because it’s actually just an apple browser engine in a chrome ui

just tried chrome://inspect- didn’t work

I’m going to check with my android emulator real quick
but first update…
image

2 Likes

first… i just checked chrome://chrome-urls and no option is available

That’s cool :slight_smile:

1 Like

yeah it doesn’t always exist yet :frowning:

there, you can crash your browser and play the famous dino game

1 Like

ah yess! The old days!

chrome://serviceworkerinternals
chrome://inspect
chrome://indexeddb
chrome://nacl
chrome://inducebrowsercrashforrealz

yeah, the inspect tool shouldn’t be in chrome mobile, but you can use Chii to debug

When me gpu used to die, I had the peace of mind to type chrome://restart to fix it
someone might make an app that implements devtools protocol some day I guess

2 Likes

yeah… i’ll be waiting for that day :wink:

off-topic: you always make the same mistake like me :winkL

1 Like

lol, what are the chances of that happening… thanks QWERTY!

1 Like

I at least make a spelling mistake/typo while typing five times a day.

javascript:(function () { var script = document.createElement('script'); script.src="https://chii.liriliri.io/target.js"; document.body.appendChild(script); })();

anyways use that bookmarklet and go to chii.liriliri.io to inspect the glitch app

2 Likes

Ahem, ahem. :smirk::wink:

guess you started using Chii, I thought you never saw that post about Chii in the GlitchyPastePen forum

2 Likes