Debugging
Tips and Hints for Development
Back-end
To start the back-end for development purposes, you can usenpm start
. This will trigger nodemon to watch out for changes. As soon as you save any changes to the code, the server will automatically be restarted.
Additionally, npm start
will open a port for inspection. This can for example be used for debugging with Visual Studio Code. Simply follow this steps:
In VS Code, click
Debug
→Add Configuration
A new file
launch.json
should open, including a pre-configured array.Paste the following object in the
configurations
array:
Now, you can start the debugger in VS Code, add breakpoints, inspect variables and so. Happy bug hunt!
Front-end
To-Do
Last updated