-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(debugging): explain how to debug in Chrome DevTools/VS Code #10807
docs(debugging): explain how to debug in Chrome DevTools/VS Code #10807
Conversation
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Increase detected
|
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
buildDuration | 10s | 10.3s | |
nodeModulesSize | 56.3 MB | 56.3 MB | ✓ |
Client Bundles (main, webpack, commons)
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
main-HASH.js gzip | 5.76 kB | 5.76 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..67cb.js gzip | 9.69 kB | 9.69 kB | ✓ |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 55.3 kB | 55.3 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
main-HASH.module.js gzip | 4.79 kB | 4.79 kB | ✓ |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..dule.js gzip | 6.64 kB | 6.64 kB | ✓ |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 51.3 kB | 51.3 kB | ✓ |
Legacy Client Bundles (polyfills)
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 18.9 kB | 18.9 kB | ✓ |
Overall change | 18.9 kB | 18.9 kB | ✓ |
Client Pages
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_app.js gzip | 1.07 kB | 1.07 kB | ✓ |
_error.js gzip | 2.98 kB | 2.98 kB | ✓ |
hooks.js gzip | 664 B | 664 B | ✓ |
index.js gzip | 222 B | 222 B | ✓ |
link.js gzip | 1.89 kB | 1.89 kB | ✓ |
routerDirect.js gzip | 279 B | 279 B | ✓ |
withRouter.js gzip | 278 B | 278 B | ✓ |
Overall change | 7.38 kB | 7.38 kB | ✓ |
Client Pages Modern
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_app.module.js gzip | 589 B | 589 B | ✓ |
_error.module.js gzip | 2.08 kB | 2.08 kB | ✓ |
hooks.module.js gzip | 370 B | 370 B | ✓ |
index.module.js gzip | 212 B | 212 B | ✓ |
link.module.js gzip | 1.48 kB | 1.48 kB | ✓ |
routerDirect..dule.js gzip | 271 B | 271 B | ✓ |
withRouter.m..dule.js gzip | 270 B | 270 B | ✓ |
Overall change | 5.27 kB | 5.27 kB | ✓ |
Client Build Manifests
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManife..dule.js gzip | 61 B | 61 B | ✓ |
Overall change | 122 B | 122 B | ✓ |
Serverless bundles Overall increase ⚠️
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_error.js gzip | 292 kB | 292 kB | -86 B |
404.html gzip | 1.34 kB | 1.34 kB | ✓ |
hooks.html gzip | 975 B | 975 B | ✓ |
index.js gzip | 292 kB | 292 kB | |
link.js gzip | 299 kB | 300 kB | |
routerDirect.js gzip | 298 kB | 298 kB | -174 B |
withRouter.js gzip | 298 kB | 298 kB | |
Overall change | 1.48 MB | 1.48 MB |
80fdfa3
to
995e13f
Compare
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Decrease detected ✓)General
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles Overall decrease ✓
|
995e13f
to
38809be
Compare
38809be
to
7cf91aa
Compare
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Decrease detected ✓)General
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles Overall decrease ✓
|
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Increase detected
|
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
buildDuration | 10.3s | 10.1s | -141ms |
nodeModulesSize | 56.3 MB | 56.3 MB | ✓ |
Client Bundles (main, webpack, commons)
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
main-HASH.js gzip | 5.76 kB | 5.76 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..67cb.js gzip | 9.69 kB | 9.69 kB | ✓ |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 55.3 kB | 55.3 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
main-HASH.module.js gzip | 4.79 kB | 4.79 kB | ✓ |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..dule.js gzip | 6.64 kB | 6.64 kB | ✓ |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 51.3 kB | 51.3 kB | ✓ |
Legacy Client Bundles (polyfills)
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 18.9 kB | 18.9 kB | ✓ |
Overall change | 18.9 kB | 18.9 kB | ✓ |
Client Pages
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_app.js gzip | 1.07 kB | 1.07 kB | ✓ |
_error.js gzip | 2.98 kB | 2.98 kB | ✓ |
hooks.js gzip | 664 B | 664 B | ✓ |
index.js gzip | 222 B | 222 B | ✓ |
link.js gzip | 1.89 kB | 1.89 kB | ✓ |
routerDirect.js gzip | 279 B | 279 B | ✓ |
withRouter.js gzip | 278 B | 278 B | ✓ |
Overall change | 7.38 kB | 7.38 kB | ✓ |
Client Pages Modern
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_app.module.js gzip | 589 B | 589 B | ✓ |
_error.module.js gzip | 2.08 kB | 2.08 kB | ✓ |
hooks.module.js gzip | 370 B | 370 B | ✓ |
index.module.js gzip | 212 B | 212 B | ✓ |
link.module.js gzip | 1.48 kB | 1.48 kB | ✓ |
routerDirect..dule.js gzip | 271 B | 271 B | ✓ |
withRouter.m..dule.js gzip | 270 B | 270 B | ✓ |
Overall change | 5.27 kB | 5.27 kB | ✓ |
Client Build Manifests
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManife..dule.js gzip | 61 B | 61 B | ✓ |
Overall change | 122 B | 122 B | ✓ |
Serverless bundles Overall increase ⚠️
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_error.js gzip | 292 kB | 292 kB | |
404.html gzip | 1.34 kB | 1.34 kB | ✓ |
hooks.html gzip | 975 B | 975 B | ✓ |
index.js gzip | 292 kB | 293 kB | |
link.js gzip | 300 kB | 299 kB | -962 B |
routerDirect.js gzip | 298 kB | 299 kB | |
withRouter.js gzip | 298 kB | 298 kB | |
Overall change | 1.48 MB | 1.48 MB |
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Decrease detected ✓)General
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles Overall decrease ✓
|
38e44d4
to
254b46d
Compare
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Increase detected
|
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
buildDuration | 9s | 9.2s | |
nodeModulesSize | 56.3 MB | 56.3 MB | ✓ |
Client Bundles (main, webpack, commons)
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
main-HASH.js gzip | 5.76 kB | 5.76 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..67cb.js gzip | 9.69 kB | 9.69 kB | ✓ |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 55.3 kB | 55.3 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
main-HASH.module.js gzip | 4.79 kB | 4.79 kB | ✓ |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..dule.js gzip | 6.64 kB | 6.64 kB | ✓ |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 51.3 kB | 51.3 kB | ✓ |
Legacy Client Bundles (polyfills)
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 18.9 kB | 18.9 kB | ✓ |
Overall change | 18.9 kB | 18.9 kB | ✓ |
Client Pages
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_app.js gzip | 1.07 kB | 1.07 kB | ✓ |
_error.js gzip | 2.98 kB | 2.98 kB | ✓ |
hooks.js gzip | 664 B | 664 B | ✓ |
index.js gzip | 222 B | 222 B | ✓ |
link.js gzip | 1.89 kB | 1.89 kB | ✓ |
routerDirect.js gzip | 279 B | 279 B | ✓ |
withRouter.js gzip | 278 B | 278 B | ✓ |
Overall change | 7.38 kB | 7.38 kB | ✓ |
Client Pages Modern
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_app.module.js gzip | 589 B | 589 B | ✓ |
_error.module.js gzip | 2.08 kB | 2.08 kB | ✓ |
hooks.module.js gzip | 370 B | 370 B | ✓ |
index.module.js gzip | 212 B | 212 B | ✓ |
link.module.js gzip | 1.48 kB | 1.48 kB | ✓ |
routerDirect..dule.js gzip | 271 B | 271 B | ✓ |
withRouter.m..dule.js gzip | 270 B | 270 B | ✓ |
Overall change | 5.27 kB | 5.27 kB | ✓ |
Client Build Manifests
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManife..dule.js gzip | 61 B | 61 B | ✓ |
Overall change | 122 B | 122 B | ✓ |
Serverless bundles Overall increase ⚠️
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_error.js gzip | 292 kB | 292 kB | |
404.html gzip | 1.34 kB | 1.34 kB | ✓ |
hooks.html gzip | 975 B | 975 B | ✓ |
index.js gzip | 293 kB | 292 kB | -1.13 kB |
link.js gzip | 300 kB | 299 kB | -408 B |
routerDirect.js gzip | 298 kB | 299 kB | |
withRouter.js gzip | 298 kB | 299 kB | |
Overall change | 1.48 MB | 1.48 MB |
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Decrease detected ✓)General
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles Overall decrease ✓
|
This new documentation page explains how to debug your backend and frontend code in Chrome DevTools/VS Code. This works perfectly with full source map support for both Node.js and React code.
1f5a4f0
to
4718ae2
Compare
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Increase detected
|
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
buildDuration | 9.6s | 9.5s | -58ms |
nodeModulesSize | 56.3 MB | 56.3 MB | ✓ |
Client Bundles (main, webpack, commons)
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
main-HASH.js gzip | 5.76 kB | 5.76 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..67cb.js gzip | 9.69 kB | 9.69 kB | ✓ |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 55.3 kB | 55.3 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
main-HASH.module.js gzip | 4.79 kB | 4.79 kB | ✓ |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..dule.js gzip | 6.64 kB | 6.64 kB | ✓ |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 51.3 kB | 51.3 kB | ✓ |
Legacy Client Bundles (polyfills)
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 18.9 kB | 18.9 kB | ✓ |
Overall change | 18.9 kB | 18.9 kB | ✓ |
Client Pages
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_app.js gzip | 1.07 kB | 1.07 kB | ✓ |
_error.js gzip | 2.98 kB | 2.98 kB | ✓ |
hooks.js gzip | 664 B | 664 B | ✓ |
index.js gzip | 222 B | 222 B | ✓ |
link.js gzip | 1.89 kB | 1.89 kB | ✓ |
routerDirect.js gzip | 279 B | 279 B | ✓ |
withRouter.js gzip | 278 B | 278 B | ✓ |
Overall change | 7.38 kB | 7.38 kB | ✓ |
Client Pages Modern
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_app.module.js gzip | 589 B | 589 B | ✓ |
_error.module.js gzip | 2.08 kB | 2.08 kB | ✓ |
hooks.module.js gzip | 370 B | 370 B | ✓ |
index.module.js gzip | 212 B | 212 B | ✓ |
link.module.js gzip | 1.48 kB | 1.48 kB | ✓ |
routerDirect..dule.js gzip | 271 B | 271 B | ✓ |
withRouter.m..dule.js gzip | 270 B | 270 B | ✓ |
Overall change | 5.27 kB | 5.27 kB | ✓ |
Client Build Manifests
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManife..dule.js gzip | 61 B | 61 B | ✓ |
Overall change | 122 B | 122 B | ✓ |
Serverless bundles Overall increase ⚠️
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_error.js gzip | 292 kB | 292 kB | |
404.html gzip | 1.34 kB | 1.34 kB | ✓ |
hooks.html gzip | 975 B | 975 B | ✓ |
index.js gzip | 292 kB | 293 kB | |
link.js gzip | 300 kB | 299 kB | -877 B |
routerDirect.js gzip | 298 kB | 298 kB | -10 B |
withRouter.js gzip | 298 kB | 298 kB | |
Overall change | 1.48 MB | 1.48 MB |
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Increase detected
|
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
buildDuration | 11.3s | 11.4s | |
nodeModulesSize | 56.3 MB | 56.3 MB | ✓ |
Client Bundles (main, webpack, commons)
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
main-HASH.js gzip | 5.76 kB | 5.76 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..67cb.js gzip | 9.69 kB | 9.69 kB | ✓ |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 55.3 kB | 55.3 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
main-HASH.module.js gzip | 4.79 kB | 4.79 kB | ✓ |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..dule.js gzip | 6.64 kB | 6.64 kB | ✓ |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 51.3 kB | 51.3 kB | ✓ |
Legacy Client Bundles (polyfills)
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 18.9 kB | 18.9 kB | ✓ |
Overall change | 18.9 kB | 18.9 kB | ✓ |
Client Pages
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_app.js gzip | 1.07 kB | 1.07 kB | ✓ |
_error.js gzip | 2.98 kB | 2.98 kB | ✓ |
hooks.js gzip | 664 B | 664 B | ✓ |
index.js gzip | 222 B | 222 B | ✓ |
link.js gzip | 1.89 kB | 1.89 kB | ✓ |
routerDirect.js gzip | 279 B | 279 B | ✓ |
withRouter.js gzip | 278 B | 278 B | ✓ |
Overall change | 7.38 kB | 7.38 kB | ✓ |
Client Pages Modern
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_app.module.js gzip | 589 B | 589 B | ✓ |
_error.module.js gzip | 2.08 kB | 2.08 kB | ✓ |
hooks.module.js gzip | 370 B | 370 B | ✓ |
index.module.js gzip | 212 B | 212 B | ✓ |
link.module.js gzip | 1.48 kB | 1.48 kB | ✓ |
routerDirect..dule.js gzip | 271 B | 271 B | ✓ |
withRouter.m..dule.js gzip | 270 B | 270 B | ✓ |
Overall change | 5.27 kB | 5.27 kB | ✓ |
Client Build Manifests
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManife..dule.js gzip | 61 B | 61 B | ✓ |
Overall change | 122 B | 122 B | ✓ |
Serverless bundles Overall increase ⚠️
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_error.js gzip | 292 kB | 293 kB | |
404.html gzip | 1.34 kB | 1.34 kB | ✓ |
hooks.html gzip | 975 B | 975 B | ✓ |
index.js gzip | 293 kB | 292 kB | -541 B |
link.js gzip | 299 kB | 299 kB | -7 B |
routerDirect.js gzip | 298 kB | 298 kB | |
withRouter.js gzip | 299 kB | 299 kB | -11 B |
Overall change | 1.48 MB | 1.48 MB |
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Decrease detected ✓)General
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles Overall decrease ✓
|
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Decrease detected ✓)General
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles Overall decrease ✓
|
@Timer @timneutkens quick ping that in Next 9.3 this is no more working because multiple node processes are launched behind the "next" command now? And when doing: NODE_OPTIONS='--inspect' next Now it will throw: Starting inspector on 127.0.0.1:9229 failed: address already in use |
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Decrease detected ✓)General
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles Overall decrease ✓
|
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Decrease detected ✓)General
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles Overall decrease ✓
|
This will never work as explained in this current documentation PR because when you use that, it will try to:
This is also why I went in this documentation for a simple approach of adding NODE_OPTIONS the closest to the There's no penalty of starting next always in debug mode on dev: this is actually what you want, to always be able to debug it. There's no performance boost in dev that I know of by NOT starting it in debug mode. |
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Increase detected
|
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
buildDuration | 12.4s | 12.3s | -143ms |
nodeModulesSize | 47.7 MB | 47.7 MB | ✓ |
Client Bundles (main, webpack, commons)
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
main-HASH.js gzip | 6.25 kB | 6.25 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..5272.js gzip | 10.2 kB | 10.2 kB | ✓ |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 56.3 kB | 56.3 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
main-HASH.module.js gzip | 4.78 kB | 4.78 kB | ✓ |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..dule.js gzip | 6.75 kB | 6.75 kB | ✓ |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 51.4 kB | 51.4 kB | ✓ |
Legacy Client Bundles (polyfills)
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Pages
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_app.js gzip | 1.24 kB | 1.24 kB | ✓ |
_error.js gzip | 3.15 kB | 3.15 kB | ✓ |
hooks.js gzip | 664 B | 664 B | ✓ |
index.js gzip | 222 B | 222 B | ✓ |
link.js gzip | 2.03 kB | 2.03 kB | ✓ |
routerDirect.js gzip | 279 B | 279 B | ✓ |
withRouter.js gzip | 278 B | 278 B | ✓ |
Overall change | 7.86 kB | 7.86 kB | ✓ |
Client Pages Modern
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_app.module.js gzip | 594 B | 594 B | ✓ |
_error.module.js gzip | 2.08 kB | 2.08 kB | ✓ |
hooks.module.js gzip | 370 B | 370 B | ✓ |
index.module.js gzip | 212 B | 212 B | ✓ |
link.module.js gzip | 1.48 kB | 1.48 kB | ✓ |
routerDirect..dule.js gzip | 271 B | 271 B | ✓ |
withRouter.m..dule.js gzip | 270 B | 270 B | ✓ |
Overall change | 5.28 kB | 5.28 kB | ✓ |
Client Build Manifests
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManife..dule.js gzip | 61 B | 61 B | ✓ |
Overall change | 122 B | 122 B | ✓ |
Serverless bundles Overall increase ⚠️
zeit/next.js canary | vvo/next.js docs/debugging-in-chrome-devtools | Change | |
---|---|---|---|
_error.js gzip | 233 kB | 233 kB | |
404.html gzip | 1.32 kB | 1.32 kB | ✓ |
hooks.html gzip | 956 B | 956 B | ✓ |
index.js gzip | 233 kB | 233 kB | |
link.js gzip | 243 kB | 243 kB | |
routerDirect.js gzip | 241 kB | 241 kB | -229 B |
withRouter.js gzip | 241 kB | 241 kB | |
Overall change | 1.19 MB | 1.19 MB |
Thanks for the explanation. The reason why we don't start in debug at all times is that It's also surprisingly tricky to convert a npm script to direct CLI invocation (in which case I'd just put this to my shell history and leave $ FORCE_COLOR=true NODE_OPTIONS='--inspect' yarn next | yarn pino-pretty -t -c -s "level > '30'"
Debugger listening on ws://127.0.0.1:9229/8a156096-ba9f-4c91-a96a-e95b3fea87b1
For help, see: https://nodejs.org/en/docs/inspector
yarn run v1.22.4
$ /Users/borekb/dev/shoptet/sofa/node_modules/.bin/pino-pretty -t -c -s 'level > '\''30'\'
Starting inspector on 127.0.0.1:9229 failed: address already in use
error Command failed with exit code 12. A workaround is to use
But it's a bit of work. I think that what I want from VSCode is:
VSCode can already do all parts of the equation, just not in a single coherent use case. |
This is true. The debug protocol is based on "domains", and unless you make a call to enable the e.g. "Debugger" domain, there should be no runtime effect. Another option you have is to use our new debugger for this, which doesn't need the --inspect flag (it sets NODE_OPTIONS that --require a bootloader to put processes in debug mode adn attach back to VS Code). You then have a few options to start that server:
|
I don't see the lens in Though I still think that I prefer the "Attach to Node Process" workflow – in that case, I don't need to be thinking from where I launch the process. |
Ok, sounds good. The code lens should work on stable, can you open an issue with the contents of your package.json? Maybe you have something in there that trips up our parsing logic. |
Hi, I tried debugging with vscode, and it works BUT only for certain breakpoint position (mainly in root components), it is not working with hooks/ function components ? |
```bash | ||
Debugger listening on ws://127.0.0.1:9229/0cf90313-350d-4466-a748-cd60f4e47c95 | ||
For help, see: https://nodejs.org/en/docs/inspector | ||
[ wait ] starting the development server ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The output was updated but we can update this in a follow-up PR 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome, thanks so much @vvo 💯
We can still make the inspect flag more ergonomic by bringing back --inspect
I think but besides that this doc looks good for now 👍
Thanks for this documentation, it'll be helpful to VSCode users. Here is how I did it using WebStorm:
Running this in debug more will generate the following output:
It looks messy, but it does work. It slows down the app a lot though. I'm not sure if it's good enough to be part of the documentation. I have little understanding on how debugging works behind the scene, but I feel like WebStorm works differently because it starts both the server and attach to it at once, it's not 2 separate things like it seems to be with VSCode. |
If webstorm has an option to disable async stack traces like vs code does, that may provide a significant speed improvement (I was seeing a webpack build run 40% faster with them disabled for instance; will vary by use case). |
Thanks for the hint, it looks doable (see https://www.jetbrains.com/help/idea/async-stacktraces.html) Haven't found how to actually disable it yet, though. |
I gave it a try, but it doesn't work with TS files due to source maps not being found. I tried various ways to resolve source maps but I don't know enough how Next.js works internally to solve it. TL;DR Debug mode works with Next.js and VSCode, but not if you use TypeScript |
It could be an issue of source maps not being found, but more likely they're found but don't match up with your files. The easiest way to diagnose this (without poking around internally in the debugger or its logs :) ) is to add a |
@connor4312 Unfortunately, I'm unable to set any breakpoint at all. Updating the code doesn't apply the breakpoint. I also tried to set the |
…cel#10807) This new documentation page explains how to debug your backend and frontend code in Chrome DevTools/VS Code. This works perfectly with full source map support for both Node.js and React code. Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This new documentation page explains how to debug your backend and frontend code in Chrome DevTools/VS Code. This works perfectly with full source map support for both Node.js and React code.
Fixes #4571
Fixes #8295
Fixes #7294
Fixes #10516
Fixes microsoft/vscode-recipes#80
Fixes microsoft/vscode-recipes#227
Fixes microsoft/vscode-recipes#245
Fixes microsoft/vscode-recipes#210
Fixes microsoft/vscode-recipes#195