Skip to content

Commit

Permalink
Update docs/advanced-features/debugging.md (#42842)
Browse files Browse the repository at this point in the history
Updated `.vscode/launch.json` debugging file due to the following errors: 
- `console: pwa-chrome` shows an  eslint error recommending `console: chrome`
- `console` key  is now deprecated.

Tested client and server-side debugging on:
- Mac v12.6 (21G115)
- VSCode v1.73.1
- Chrome v107.0.5304.110

See attached screenshots for linting errors.

**console: pwa-chrome**

<img width="464" alt="CleanShot 2022-11-12 at 22 06 15@2x" src="https://user-images.githubusercontent.com/3606121/201502364-e796b1a0-51a5-4aee-8bcf-8828e03f244a.png">

**`console`**

<img width="503" alt="CleanShot 2022-11-12 at 22 06 37@2x" src="https://user-images.githubusercontent.com/3606121/201502369-55d75a93-360f-4d67-ba15-438d683c041b.png">



## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples

- [X] Make sure the linting passes by running `pnpm build && pnpm lint`
- [X] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
  • Loading branch information
KoltonG committed Nov 14, 2022
1 parent 994089f commit 3a0065d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/advanced-features/debugging.md
Expand Up @@ -24,7 +24,7 @@ Create a file named `.vscode/launch.json` at the root of your project with the f
},
{
"name": "Next.js: debug client-side",
"type": "pwa-chrome",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000"
},
Expand All @@ -33,7 +33,6 @@ Create a file named `.vscode/launch.json` at the root of your project with the f
"type": "node-terminal",
"request": "launch",
"command": "npm run dev",
"console": "integratedTerminal",
"serverReadyAction": {
"pattern": "started server on .+, url: (https?://.+)",
"uriFormat": "%s",
Expand Down

0 comments on commit 3a0065d

Please sign in to comment.