phoihos / react-vscode-config

VS Code debugging configuration to debug react app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-vscode-config

This is Debugging Configuration to debug React app with VSCode.

Getting Started

  1. Make sure you're running the latest version of VSCode.
  2. Also make sure the latest version of the Debugger for Chrome extension is installed in VS Code.

    If you're using Microsoft Edge browser, install Debugger for Microsoft Edge extension.

  3. Download .vscode folder above and put it into your workspace (project root folder). After download, your project should look like this:
    my-app/
      .vscode/       <-- Must be in Here
      node_modules/
      public/
      src/
      package.json
      README.md
    

Debugging

  1. Pick a 'Launch with Chrome' config from the dropdown on the Debug pane on the side of VSCode.

    If you're using the new Microsoft Edge browser, select 'Launch with Edge'.

  2. Press the play button or F5 key to start debugging.
  3. Set breakpoints in any of the files.

    You could do this step before first step.

Note: You can learn more about VSCode debugger within the Debugging in Visual Studio Code.

License

CC0 1.0 (Public Domain)

About

VS Code debugging configuration to debug react app

License:Creative Commons Zero v1.0 Universal