Skip to content

Instantly share code, notes, and snippets.

@tomdohnal
Last active October 1, 2025 14:15
Show Gist options
  • Select an option

  • Save tomdohnal/57a186cf52d39218ab9ea990cff2f09b to your computer and use it in GitHub Desktop.

Select an option

Save tomdohnal/57a186cf52d39218ab9ea990cff2f09b to your computer and use it in GitHub Desktop.
Debugging Next.js in VSCode (with Turbopack) – launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Next.js: debug server-side",
"port": 9230,
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"sourceMapPathOverrides": {
"/turbopack/[project]/*": "${webRoot}/*"
}
},
{
"type": "chrome",
"request": "launch",
"name": "Next.js: debug client-side",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"sourceMapPathOverrides": {
"/turbopack/[project]/*": "${webRoot}/*"
}
}
],
"compounds": [
{
"name": "Next.js: debug full stack",
"configurations": ["Next.js: debug client-side", "Next.js: debug server-side"],
"stopAll": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment