Where is the console output on the new CodeSandbox Cloud Web Editor?
Asked Answered
H

8

10

After hitting this link to upgrade a CodeSandbox to the new CloudSandbox Web Editor

![upgrade link

I can no longer find the highly useful "Console" and "Problems" windows:

old sandbox console and problems sections

Where did they go?

EDIT:

It seems that this feature is really gone and the only way to see console logs is now to open the browser inspector. If anybody from CodeSandbox is out there listening: this sucks! I've never not wanted to use console.log in a CodeSandbox, but now instead of showing that output conveniently right where I want it, in a small window that doesn't take up much space, I have to clutter up my screen layout with the full browser inspector open. This was perfect before the change -- change it back!

Hoff answered 12/5, 2023 at 19:15 Comment(1)
right next to the devbox URL, the third icon button ( preview console ), is what you're looking for.Petrify
P
2

The third icon button ( preview console ), is what you're looking for.

Petrify answered 16/2, 2024 at 7:33 Comment(4)
I don't see it (at least on this link codesandbox.io/p/sandbox/headless-wind-tr1ns)Mauchi
@Mauchi it's strange. I opened your link and it was exactly there.Petrify
Also it works only in Chrome. Not in Safari.Cocke
Be sure the preview is working, otherwise these buttons are hiddenBulldoze
S
1

Console.log are printed in your browsers Devtools console tab. You can open it pressing F12.

Semiconductor answered 8/6, 2023 at 6:59 Comment(0)
P
1

In preview tab, if you hover over the third button from the left or second from the right, you'll see the label "preview console". Press on it and on the bottom the devTools window will pop up. Next, press on the console tab.

Preview answered 23/11, 2023 at 5:38 Comment(0)
C
1

Click on the this icon:

It will open the console:

Chewy answered 15/6, 2024 at 8:59 Comment(0)
N
0

You can open the web viewer to new tab, and then you can inspect the web page.

First, click Dock controls enter image description here

and then click this icon at url bar enter image description here

Nothing answered 17/5, 2023 at 5:22 Comment(0)
S
0

It's under DevTools but it's easy to miss cause it's been renamed dev:logs

There's a few ways to open it. From their DevTools documentation:

  1. Clicking on the + sign on the right side of any tabbed panel. This presents a list of available DevTools—and clicking on any DevTool will open it in the current tab.
  2. Double-clicking anywhere between the tabs and the + button.
  3. Pressing Cmd/Ctrl + Shift + S.
Stigmatic answered 22/5, 2023 at 18:28 Comment(1)
dev:logs shows me the server logs (i.e., the terminal output) -- it does not show me the browser console log (i.e., what I get with console.log in the code itself).Hoff
C
0
  1. press the button that is called "Preview Console", which is the 2nd last button.
  2. this will open the dev tools like in the browser.
  3. then click on "console".
  4. here you can see the console output.

// I agree that this is a downgrade from the previous version :p

Chamade answered 10/4, 2024 at 11:35 Comment(0)
B
0

It is at the bottom of the preview page. Here you can see: In the bottom preview page, first tab is a 'cosnole' second is a 'problem'.

Bushire answered 3/7, 2024 at 5:32 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.