This project shows an example of webpacking and debugging (in VS Code) a lightning project. Tested on macOS
npm install
npm start
Bundles (using webpack) into a single file and serves at
localhost:8081
while listening for changes (i.e, updates code when saving file).
- Get VS Code
- Install the Debugger for Chrome plugin.
- Open the project directory in VS Code.
- Put breakpoints wherever.
- Run
npm start
- This will serve the app & launch a browser window, ignore/close it. - Use the debugger panel ("no bug" icon on left panel) to run
Launch Chrome against localhost
This will launch a new debugable Chrome instance.
- Use the newly launched browser window to run through the app.