WebStorm is a powerful IDE, and why not also use it as debugger tool? Here is the steps
- Install JetBrain Chrome Extension
- Setting up the PORT
- Change WebPack devtool config to
source-map
(This line) - Run web server (
npm run start
) - Create Run Configuration (Run > Edit Configurations)
- Add new
JavaScript Debug
- Setting up URL
- Start Debug (Click the green bug button)
- Edit Run Configuration Again
- Mapping Url as below picture
* Map your
root
directory withwebpack://.
(please note the last dot) * Map yourbuild
directory with your root path (e.g.http://localhost:3000
) - Hit OK and restart debugging session
- You miss the last
.
(dot) inwebpack://.
- The port debugger is listening tool and the JetBrain extension is mismatch.
ESLint help making all developer follow the same coding format. Please also setting up in your IDE, otherwise, you will fail ESLint test.
- Go to WebStorm Preference
- Search for
ESLint
- Click
Enable