Repository navigation
Inline Logs: see server and client console.log values next to your Next.js code in VS Code #101075
Unanswered
lagudafuadtosin
asked this question in
Show and tell
Replies: 1 comment
|
This looks really useful! Debugging Next.js applications can sometimes be challenging, especially when working with Server Components and Client Components together. I particularly like the idea of seeing server-side and client-side logs directly next to the source code instead of constantly switching between the terminal, browser console, and editor. The |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I built Inline Logs, a free VS Code extension that shows console.log values next to the line that made them, and it works with Next.js.
Run
next devin the VS Code terminal as usual. Logs from server components, route handlers andgetServerSidePropsland on your source lines, and so do logs from client components in the browser. App router and pages router, with Turbopack or webpack, and routes in the Edge runtime too. No config and no changes to your code.fetchcalls show their method, status and time on the line that made themEverything stays on your machine. GPL, no account, no paid tier.
Marketplace: https://marketplace.visualstudio.com/items?itemName=lagudafuadtosin.inline-logs
Open VSX: https://open-vsx.org/extension/lagudafuadtosin/inline-logs
Source: https://github.com/lagudafuadtosin/inline-logs
If a value lands on the wrong line in your Next.js app, open an issue with your Next.js version and I will look at it.

All reactions