Get console.log in website console
Answered
American Crocodile posted this in #help-forum
American CrocodileOP
Any way to get console.log in the web browser instead of terminal when using app folder? I know things run on a server and that's why they come in my terminal. But I find the console.logs so much easier to read, especially with a bunch of JSON, in the browser.
Answered by joulev
in a server component: no. i mean, it runs on the server. you cannot send that to the browser
in a client component: it should show up in the browser console normally
in a client component: it should show up in the browser console normally
2 Replies
@American Crocodile Any way to get console.log in the web browser instead of terminal when using app folder? I know things run on a server and that's why they come in my terminal. But I find the console.logs so much easier to read, especially with a bunch of JSON, in the browser.
in a server component: no. i mean, it runs on the server. you cannot send that to the browser
in a client component: it should show up in the browser console normally
in a client component: it should show up in the browser console normally
Answer
American CrocodileOP
ðŸ˜
My console.logs of data from the CMS returns longer results than my terminal can handle, so I can't see the top structure of my data. Oh well, maybe some day we'll get the ability to expand/minimize parts of JSON return in teriminal so this becomes OK to work with again
My console.logs of data from the CMS returns longer results than my terminal can handle, so I can't see the top structure of my data. Oh well, maybe some day we'll get the ability to expand/minimize parts of JSON return in teriminal so this becomes OK to work with again