Debugging

Frontend

The easiest way to debug the frontend is by using Google DevTools.

On the frontend code, place adebugger where you want the code to stop.

Then on Google Chrome, open the Google DevTools.

When the application reaches some debugger, it will stop and you can inspect the application state at that point.

Backend

To debug the backend, you must use the VSCode editor.

ScaffoldHub has already the VSCode debugging configurations settings in place, you just need to open VSCode inside the backend folder. You will know that you opened it correctly if the toolbar is pink.

  1. Click on the Debugger tab (left).

  2. Launch the Program.

  3. Open the Debug Console tab (bottom).

Now that the application is running, you can place a debugger anywhere on the backend code and it will stop when it reaches the breakpoint so you can insect the application state.

‚Äč