Skip to content

Instantly share code, notes, and snippets.

@tomdohnal
Created September 15, 2024 18:27
Show Gist options
  • Select an option

  • Save tomdohnal/9a251c4e25136213509e5b1293ffc641 to your computer and use it in GitHub Desktop.

Select an option

Save tomdohnal/9a251c4e25136213509e5b1293ffc641 to your computer and use it in GitHub Desktop.
Debugging Next.js in VSCode (with Webpack) – launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Next.js: debug server-side",
"port": 9230,
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
{
"type": "chrome",
"request": "launch",
"name": "Next.js: debug client-side",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
}
],
"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