Console.log - where to find it?

Hello,

I have a console.log statement in my js / react code and I want to check up on it. Where would I find the console similar to the chrome developer tool?

PS: I don’t mean the terminal.

thx

Welcome to Glitch forums, @CreativeOneDay!

You can see the logs by clicking on Tools > Logs

You can find Logs here:

1 Like

Thx … that’s where I assumed it, but it just says “Compiled successfully!” and not actually showing what I consol-logged out.

This is the project: https://glitch.com/~props-exercise-jokes

and I console.log something out in the Joke.js component.

@CreativeOneDay I found this confusing also! My understanding is that the “logs” capture any logs (like a console.log, echo, print statement, etc) output from the serverside code, but won’t have access to anything getting logged from the frontend/clientside code. For that, I show the project in a new window and use the built-in dev tools. Let me know if you come up with a different solution though, I’d be interested to hear!

2 Likes

Thx @househaunt, that’s probably the best shot.

1 Like

Hey @CreativeOneDay, welcome to the forums (and thanks for using Glitch!). That’s the way we check logs here as well—using the editor to see the backend logs, and going to the live app to check the browser’s console logs for anything that happens in production.

Making a note on the fact that this is a bit confusing. Always good to have on our list different ways we can make the experience clearer for folks!

1 Like