You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recognize that this is suboptimal, but it is currently required due to the way we hide the ESLint dependency. The ESLint team is already [working on a solution to this](https://github.com/eslint/eslint/issues/3458) so this may become unnecessary in a couple of months.
249
250
251
+
## Debugging in the Editor
252
+
253
+
**This feature is currently only supported by [Visual Studio Code](https://code.visualstudio.com) editor.**
254
+
255
+
Visual Studio Code supports live-editing and debugging out of the box with Create React App. This enables you as a developer to write and debug your React code without leaving the editor, and most importantly it enables you to have a continuous development workflow, where context switching is minimal, as you don’t have to switch between tools.
256
+
257
+
You would need to have the latest version of [VS Code](https://code.visualstudio.com) and VS Code [Chrome Debugger Extension](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome) installed.
258
+
259
+
Then add the block below to your `launch.json` file and put it inside the `.vscode` folder in your app’s root directory.
260
+
261
+
```json
262
+
{
263
+
"version": "0.2.0",
264
+
"configurations": [{
265
+
"name": "Chrome",
266
+
"type": "chrome",
267
+
"request": "launch",
268
+
"url": "http://localhost:3000",
269
+
"webRoot": "${workspaceRoot}/src",
270
+
"userDataDir": "${workspaceRoot}/.chrome",
271
+
"sourceMapPathOverrides": {
272
+
"webpack:///src/*": "${webRoot}/*"
273
+
}
274
+
}]
275
+
}
276
+
```
277
+
278
+
Start your app by running `npm start`, and start debugging in VS Code by pressing `F5` or by clicking the green debug icon. You can now write code, set breakpoints, make changes to the code, and debug your newly modified code—all from your editor.
279
+
250
280
## Changing the Page `<title>`
251
281
252
282
You can find the source HTML file in the `public` folder of the generated project. You may edit the `<title>` tag in it to change the title from “React App” to anything else.
0 commit comments