rsnext/docs/advanced-features
Ty Mick c7e187f893
Add client-side debugging instructions (#28815)
Fixes #16442

The current instructions on the Debugging page currently only work for server-side code, and furthermore, the page doesn't actually _say_ that they only work for server-side code.

This update adds instructions for debugging client-side code in both VS Code and Chrome DevTools. It also improves the suggested VS Code launch configurations to take advantages of some relatively recent features in VS Code's [built-in JavaScript debugger][1]. Using the `node-terminal` and `pwa-chrome` launch types removes the need to manually pass an `--inspect` flag to the underlying Node.js process.

[1]: https://github.com/microsoft/vscode-js-debug

Let me know if there are any edge cases I didn't consider with these VS Code launch configs!



## Documentation / Examples

- [x] Make sure the linting passes
2021-09-16 07:07:56 +00:00
..
amp-support docs: use descriptive links instead of "click here" (#25897) 2021-06-09 13:23:16 -05:00
automatic-static-optimization.md Update server output path in static optimization docs (#21910) 2021-02-05 21:00:03 -06:00
codemods.md Enable Alex documentation linting for docs (#26598) 2021-06-25 11:40:50 -05:00
custom-app.md Enable Alex documentation linting for docs (#26598) 2021-06-25 11:40:50 -05:00
custom-document.md docs: Clarify use of getStaticProps / getServerSideProps with app / document (#17839) 2020-10-13 19:17:47 +00:00
custom-error-page.md Add documentation for new static 500 behavior (#22888) 2021-03-09 12:45:31 +01:00
custom-server.md Improve custom server documentation. (#27693) 2021-08-02 16:17:27 +00:00
customizing-babel-config.md Update babel docs to mention you can use babel.config.js. (#23434) 2021-03-26 16:01:22 +00:00
customizing-postcss-config.md Document CSS Grid Better (#16996) 2020-09-10 13:46:14 -04:00
debugging.md Add client-side debugging instructions (#28815) 2021-09-16 07:07:56 +00:00
dynamic-import.md Document usage of suspense option of next/dynamic (#28210) 2021-08-18 01:21:22 +00:00
i18n-routing.md Update i18n locales limit to warning (#28429) 2021-08-25 08:54:38 -05:00
measuring-performance.md docs: use descriptive links instead of "click here" (#25897) 2021-06-09 13:23:16 -05:00
module-path-aliases.md Update module-path-aliases.md (#22739) 2021-03-08 14:19:31 +01:00
multi-zones.md Fixed minor grammar issue (#27493) 2021-07-26 04:19:37 +00:00
preview-mode.md Update Preview Mode docs with note on local dev (#22906) 2021-04-19 22:19:32 -05:00
security-headers.md Update max-age in HSTS sample (#27452) 2021-07-23 18:01:36 -05:00
source-maps.md Fix typo in source maps documentation. (#22952) 2021-03-10 16:41:01 +00:00
src-directory.md Add descriptions to documentation pages (#9901) 2020-01-03 13:16:51 -05:00
static-html-export.md Enable Alex documentation linting for docs (#26598) 2021-06-25 11:40:50 -05:00