To use your new debug
script, navigate to your application's root folder and issue the following command in your command-line tool:
$ npm run debug
This will run your application in a debug mode and wait for you to attach the Chrome Developer Tools debugger. The output in your command-line tool should be similar to what is shown in the following screenshot:
As you can see, the debug
script invites you to start debugging the application by visiting chrome-devtools://…
using a compatible browser. Open this URL in Google Chrome, and you should see an interface similar to what is shown in the following screenshot:
As you can see, you'll get a list of your project files in the left-hand side panel, a file content viewer in the middle panel, and a debug dashboard in the right-hand side panel. This means that your debug
script is running properly and is identifying your Express project. You can start debugging your project...