Console not showing output from console.log("hi");

Hi all,

I’m new to Glitch. Before Glitch, I was creating p5.js code using the “editor.p5js.org” and “OpenProcessing.org” editors.

On Glitch, I’m working with the standard project that gets created when you click on New Project > Hello Web Page. The .js file has a line that reads:

console.log("hi");

I’ve been trying to troubleshoot why I don’t see “hi” output in the console. I get this:

::ffff:127.0.0.1 - - [17/Dec/2020:11:43:12 +0000] "GET / HTTP/1.1" 304 - "https://glitch.com/" 

… and so on, but not “hi”.

Is someone able to shed some light on this for me?

Much appreciated!

I think you are looking in the wrong console, check the dev tools browser console.

Thanks, I’ll try that. Could you let me know where I can find it?

Open your project in a new tab and run CRTL + SHFT + I.

Thanks :slight_smile: I still don’t seem to be getting it to work though.

I’m on a Mac, using Chrome. Here’s what I’ve done:
I’ve hit the SHOW > IN A NEW WINDOW option on my project page.
I navigate to the new tab that’s opened with my project inside.
Nothing happens when I hit CONTROL + SHIFT + i
Or when I hit COMMAND + SHIFT + i

What should I be seeing? Is there maybe a plug in I need to install? Or perhaps some sort of blocker I need to deactivate?

Have you tried using a Chromebook or windows if you have one,cause i’d use those to do the CTRL+SHIFT+I

Odd, I’d recommend that you search up how to open the dev console on your browser and OS.

Will do. Thanks for your help RiversideRocks :slight_smile:

2 Likes

I believe, on MacOS, it’s Option + + J. Alternatively, you can click on the three dots that appear on the top right of the window, hover over “More Tools” from the dropdown that appears and click on “Developer Tools”.

Yes–that did it! Thanks for your help :slight_smile:

2 Likes